fix wsgi.py;

added entrypoint.sh as django entrypoint;
install and use gunicorn as prod server;
This commit is contained in:
Marco Zeisler
2021-05-04 19:37:38 +02:00
parent 065922b279
commit 560c688817
4 changed files with 28 additions and 17 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# executes the manage.py commands to setup and starts the server
echo "setup"
python manage.py makemigrations
python manage.py makemigrations app_be
python manage.py migrate
echo "run server"
gunicorn app_be.wsgi:application -b 0.0.0.0 -p 8000