Update mw.service.tpl

pull/632/head
Mr Chen 5 months ago
parent e1ef876db1
commit 46d7f83cc4
  1. 4
      scripts/init.d/mw.service.tpl

@ -4,9 +4,9 @@ After=network.target
[Service]
Type=simple
WorkingDirectory={$SERVER_PATH}/web
WorkingDirectory={$SERVER_PATH}
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh
ExecStart=gunicorn -c setting.py app:app
ExecStart=cd web && gunicorn -c setting.py app:app
ExecStop=kill -HUP $MAINID
ExecReload=kill -HUP $MAINID
KillMode=process

Loading…
Cancel
Save