Skip to content

Commit df44486

Browse files
-
1 parent a84d3f9 commit df44486

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/systemd/gunicorn.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Group=gunicorn
1717
# this user can be transiently created by systemd
1818
DynamicUser=true
1919
RuntimeDirectory=gunicorn
20-
WorkingDirectory=/opt/sort/venv/lib/python3.12/site-packages/SORT
20+
WorkingDirectory=/opt/sort
2121
ExecStart=/opt/sort/venv/bin/gunicorn sort.wsgi
2222
ExecReload=/bin/kill -s HUP $MAINPID
2323
KillMode=mixed

deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ cp --recursive * "$sort_dir/"
3030
cp --verbose config/systemd/gunicorn.service /etc/systemd/system/gunicorn.service
3131
cp --verbose config/systemd/gunicorn.socket /etc/systemd/system/gunicorn.socket
3232

33+
systemctl enable gunicorn.service
34+
systemctl enable gunicorn.socket
35+
3336
# Install web reverse proxy server
3437
# Install nginx
3538
# https://nginx.org/en/docs/install.html

0 commit comments

Comments
 (0)