add an entry point file for the app and modify gunicorn config to communicate with nginx

This commit is contained in:
Suksi
2021-08-30 21:56:18 +00:00
parent 5ce6808a0d
commit cd2d96411b
2 changed files with 7 additions and 2 deletions
+3 -2
View File
@@ -1,2 +1,3 @@
bind = "0.0.0.0:8080" bind = "unix:app.sock"
workers = 2 workers = 3
umask = 0o007
+4
View File
@@ -0,0 +1,4 @@
from app import app
if __name__ == "__main__":
app.run()