-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (18 loc) · 1002 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
fastbuild:
ENVIRONMENT=production docker-compose up -d --build
build: ## TODO: dev/stage/prod
ENVIRONMENT=production docker-compose up -d --build --force-recreate --remove-orphans
superuser: ## creates a superuser for the backend
docker-compose exec ureport-web python3 manage.py createsuperuser
drop-db: ## drops the database
docker-compose down -t 60
docker volume rm ureport-pgdata
migrate: ## apply migrations in a clean container
docker-compose exec ureport-web python3 manage.py migrate --run-syncdb
collectstatic: ## collect static files
docker-compose exec ureport-web python3 manage.py collectstatic --noinput
pyshell: ## start a django shell
docker-compose exec ureport-web python3 manage.py shell
shell: ## start bash
docker-compose exec ureport-web bash
## TODO: Update the SSL certificates for NGINX