Marco Zeisler 560c688817 fix wsgi.py;
added entrypoint.sh as django entrypoint;
install and use gunicorn as prod server;
2021-05-04 19:37:38 +02:00

11 lines
258 B
Bash

#!/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