Add 3 roles, settings for marathons
This commit is contained in:
22
Makefile
22
Makefile
@@ -17,7 +17,11 @@ help:
|
||||
@echo ""
|
||||
@echo " Build:"
|
||||
@echo " make build - Build all containers (with cache)"
|
||||
@echo " make build-no-cache - Rebuild all containers (no cache)"
|
||||
@echo " make build-no-cache - Build all containers (no cache)"
|
||||
@echo " make reup - Rebuild with cache: down + build + up"
|
||||
@echo " make rebuild - Full rebuild: down + build --no-cache + up"
|
||||
@echo " make rebuild-frontend - Rebuild only frontend"
|
||||
@echo " make rebuild-backend - Rebuild only backend"
|
||||
@echo ""
|
||||
@echo " Database:"
|
||||
@echo " make migrate - Run database migrations"
|
||||
@@ -60,12 +64,28 @@ build:
|
||||
build-no-cache:
|
||||
$(DC) build --no-cache
|
||||
|
||||
reup:
|
||||
$(DC) down
|
||||
$(DC) build
|
||||
$(DC) up -d
|
||||
|
||||
rebuild:
|
||||
$(DC) down
|
||||
$(DC) build --no-cache
|
||||
$(DC) up -d
|
||||
|
||||
rebuild-frontend:
|
||||
$(DC) down
|
||||
sudo docker rmi marathon-frontend || true
|
||||
$(DC) build --no-cache frontend
|
||||
$(DC) up -d
|
||||
|
||||
rebuild-backend:
|
||||
$(DC) down
|
||||
sudo docker rmi marathon-backend || true
|
||||
$(DC) build --no-cache backend
|
||||
$(DC) up -d
|
||||
|
||||
# Database
|
||||
migrate:
|
||||
$(DC) exec backend alembic upgrade head
|
||||
|
||||
Reference in New Issue
Block a user