-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
33 lines (32 loc) · 1018 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Production
prod_run:
docker compose -f docker-compose.prod.yml down --remove-orphans --volumes
docker compose down --remove-orphans --volumes
docker compose -f docker-compose.prod.yml up -d
prod_update:
docker compose -f docker-compose.prod.yml down --remove-orphans --volumes
docker compose down --remove-orphans --volumes
docker compose -f docker-compose.prod.yml up -d --build
update:
docker-compose down --remove-orphans --volumes
docker-compose up -d --build
# Development environment
run-build:
docker-compose up --build
run:
docker-compose up
down:
docker-compose down --remove-orphans --volumes
logs:
docker-compose logs -f
seed:
docker exec -it esus_dashboard_api bash -c "FLASK_APP=app/__init__.py && \
flask seed"
terminal:
docker exec -it esus_dashboard_api bash
shell:
docker exec -it esus_dashboard_api bash -c "flask shell"
migrate:
docker exec -it esus_dashboard_api bash -c "flask db upgrade"
makemigrations:
docker exec -it esus_dashboard_api bash -c 'flask db migrate -m "$(m)"'