mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
up
This commit is contained in:
@@ -5,6 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory={$SERVER_PATH}
|
WorkingDirectory={$SERVER_PATH}
|
||||||
|
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh
|
||||||
ExecStart=python3 task.py
|
ExecStart=python3 task.py
|
||||||
ExecStop=kill -HUP $MAINID
|
ExecStop=kill -HUP $MAINID
|
||||||
ExecReload=kill -HUP $MAINID
|
ExecReload=kill -HUP $MAINID
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
WorkingDirectory={$SERVER_PATH}
|
WorkingDirectory={$SERVER_PATH}
|
||||||
|
EnvironmentFile={$SERVER_PATH}/scripts/init.d/service.sh
|
||||||
ExecStart=gunicorn -c setting.py app:app
|
ExecStart=gunicorn -c setting.py app:app
|
||||||
ExecStop=kill -HUP $MAINID
|
ExecStop=kill -HUP $MAINID
|
||||||
ExecReload=kill -HUP $MAINID
|
ExecReload=kill -HUP $MAINID
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
|
||||||
|
export PATH
|
||||||
|
|
||||||
|
cd /www/server/mdserver-web
|
||||||
|
if [ -f bin/activate ];then
|
||||||
|
source bin/activate
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user