Files
qrcode/.dev/.mk/system.mk
2026-04-29 22:38:07 +02:00

41 lines
826 B
Makefile

##@ System:
build: ## build project
docker compose build
build-no-cache: ## build project
docker compose build --no-cache
install: ## install the project
$(MAKE) up
echo "waiting db up..."
sleep 5
echo "migrate db"
$(MAKE) migrate-up
echo "install go requarements"
$(MAKE) app-tidy
$(MAKE) app-vendor
echo "install nodejs requarements"
docker compose run qrcode-front sh -c 'npm install'
$(MAKE) stop
echo "start the project"
$(MAKE) watch
up: ## start project
docker compose up -d --remove-orphans
stop: ## stop project
docker compose stop
down: ## stop project (remove db. Need to make migrate-up)
docker compose down
watch: ## watch project
docker compose up --remove-orphans
state: ## show state
docker compose ps
logs: ## show last 100 lines of logs
docker compose logs --tail=100 $(ARGS)