fix: directory changed
This commit is contained in:
parent
0b3fcdbbc2
commit
f5bedb97f0
2 changed files with 8 additions and 7 deletions
|
|
@ -7,10 +7,8 @@ StartLimitIntervalSec=60
|
|||
|
||||
[Service]
|
||||
User=karl
|
||||
WorkingDirectory=/home/karl/app
|
||||
ExecStart=/home/karl/app/venv/bin/gunicorn \
|
||||
-c /home/karl/app/gunicorn.conf.py \
|
||||
app.main:app
|
||||
WorkingDirectory=/opt/karl
|
||||
ExecStart=/opt/karl/.venv/bin/python3 /opt/karl/src/karl/__init__.py
|
||||
|
||||
# Graceful reload (sends SIGHUP)
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
|
|
@ -23,7 +21,7 @@ RestartSec=5s
|
|||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/log/karl /tmp
|
||||
ReadWritePaths=/var/log/karl /opt/karl/repository
|
||||
|
||||
# Logging
|
||||
StandardOutput=journal
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue