mirror of https://github.com/openspug/spug
U 优化服务启动脚本
parent
1e5bd342d5
commit
78c6c9f0e1
|
@ -5,5 +5,7 @@
|
|||
# start api service
|
||||
|
||||
cd $(dirname $(dirname $0))
|
||||
source ./venv/bin/activate
|
||||
if [ -f ./venv/bin/activate ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
exec gunicorn -b 127.0.0.1:9001 -w 2 --threads 8 --access-logfile - spug.wsgi
|
||||
|
|
|
@ -5,5 +5,7 @@
|
|||
# start monitor service
|
||||
|
||||
cd $(dirname $(dirname $0))
|
||||
source ./venv/bin/activate
|
||||
if [ -f ./venv/bin/activate ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
exec python manage.py runmonitor
|
||||
|
|
|
@ -5,5 +5,7 @@
|
|||
# start schedule service
|
||||
|
||||
cd $(dirname $(dirname $0))
|
||||
source ./venv/bin/activate
|
||||
if [ -f ./venv/bin/activate ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
exec python manage.py runscheduler
|
||||
|
|
|
@ -5,5 +5,7 @@
|
|||
# start worker service
|
||||
|
||||
cd $(dirname $(dirname $0))
|
||||
source ./venv/bin/activate
|
||||
if [ -f ./venv/bin/activate ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
exec python manage.py runworker ssh_exec
|
||||
|
|
|
@ -5,5 +5,7 @@
|
|||
# start websocket service
|
||||
|
||||
cd $(dirname $(dirname $0))
|
||||
source ./venv/bin/activate
|
||||
if [ -f ./venv/bin/activate ]; then
|
||||
source ./venv/bin/activate
|
||||
fi
|
||||
exec daphne -p 9002 spug.asgi:application
|
||||
|
|
Loading…
Reference in New Issue