nquest/Makefile

25 lines
468 B
Makefile
Raw Permalink Normal View History

2023-11-01 23:21:12 +03:00
.PHONY: db
db:
docker run --name nquest-db -e POSTGRES_DB=nquest -e POSTGRES_USER=nquest -e POSTGRES_PASSWORD=nquest -p 5432:5432 -d postgres
.PHONY: generate
generate:
go generate ./...
.PHONY: build-front
build-front:
cd frontend
npm run build
.PHONY: dev-front
dev-front:
cd frontend
npm run dev
.PHONY: deploy
deploy: frontend/dist
2024-04-29 23:31:44 +03:00
unset DOCKER_HOST
docker context use curie
2024-04-29 23:31:44 +03:00
docker compose up -d --build --remove-orphans
docker context use default