ref: Makefile & scripts

This commit is contained in:
relikd
2023-05-29 18:19:22 +02:00
parent e9f15fb799
commit 1d37d724e5
7 changed files with 13 additions and 10 deletions

6
scripts/on-deploy.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
python manage.py collectstatic --noinput
python manage.py migrate
uwsgi --ini /uwsgi.ini

5
scripts/on-init.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh
python manage.py migrate
python manage.py loaddata traits.json booking_types.json
python manage.py createsuperuser