adds uwsgi support instead of using flask dev server
- uses existing wsgi.py file - adds wsgi.ini file - sets socket - defines application to be run, which it gets from wsgi.py file - uses http communication to nginx server - some random number of workers - updates Dockerfile and docker-entrypoint
This commit is contained in:
parent
adb20dea14
commit
15e68b88e8
@ -1,7 +1,5 @@
|
||||
#!/bin/sh
|
||||
cd /home/calendarwatch
|
||||
# uwsgi --http-socket 0.0.0.0:8084 -w wsgi --protocol=https
|
||||
export FLASK_APP=/home/calendarwatch/server.py
|
||||
python3 server.py
|
||||
uwsgi --ini wsgi.ini
|
||||
echo "server has been started"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user