1
1

add whole new app for balance prediction, replace uwsgi, update everything

This commit is contained in:
2021-01-04 14:45:43 +01:00
parent 5e2881af2a
commit 37f698d82b
20 changed files with 448 additions and 191 deletions

View File

@@ -3,12 +3,10 @@ set -e
if [ "$DJANGO_PRODUCTION_MODE" == "true" ]; then
echo "starting production server ..."
./wait-for-it.sh --host=${DB_HOST} --port=${DB_PORT} --strict --timeout=20 -- \
uwsgi --ini uwsgi.ini
gunicorn --bind=0.0.0.0:8000 --workers=2 financeproject.wsgi
else
echo "starting development server ..."
./wait-for-it.sh --host=${DB_HOST} --port=${DB_PORT} --strict --timeout=20 -- \
python manage.py runserver 0.0.0.0:8000
python manage.py runserver 0.0.0.0:8000
fi