fix wsgi.py;
added entrypoint.sh as django entrypoint; install and use gunicorn as prod server;
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user