Skip to content

Commit f906f8c

Browse files
committed
try this
1 parent 0b7a64c commit f906f8c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

deploy/science.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ After=network.target
66
User=ubuntu
77
EnvironmentFile=/home/ubuntu/poly-alpha/.env
88
WorkingDirectory=/home/ubuntu/poly-alpha/science
9-
ExecStart=/home/ubuntu/poly-alpha/science/server.py
9+
ExecStart=uwsgi --ini /home/ubuntu/poly-alpha/science/uwsgi.ini
1010
Restart=on-failure
1111
RestartSec=10s
1212

science/uwsgi.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[uwsgi]
2+
socket = 0.0.0.0:5000
3+
protocol = http
4+
module = server:app
5+
processes = 4
6+
master = true
7+
vacuum=True
8+
max-requests=5000
9+
die-on-term = true

0 commit comments

Comments
 (0)