We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7a64c commit f906f8cCopy full SHA for f906f8c
deploy/science.service
@@ -6,7 +6,7 @@ After=network.target
6
User=ubuntu
7
EnvironmentFile=/home/ubuntu/poly-alpha/.env
8
WorkingDirectory=/home/ubuntu/poly-alpha/science
9
-ExecStart=/home/ubuntu/poly-alpha/science/server.py
+ExecStart=uwsgi --ini /home/ubuntu/poly-alpha/science/uwsgi.ini
10
Restart=on-failure
11
RestartSec=10s
12
science/uwsgi.ini
@@ -0,0 +1,9 @@
1
+[uwsgi]
2
+socket = 0.0.0.0:5000
3
+protocol = http
4
+module = server:app
5
+processes = 4
+master = true
+vacuum=True
+max-requests=5000
+die-on-term = true
0 commit comments