24 lines
468 B
Makefile
24 lines
468 B
Makefile
.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
|
|
unset DOCKER_HOST
|
|
docker context use curie
|
|
docker compose up -d --build --remove-orphans
|
|
docker context use default
|