Commit 3828ba7f authored by fangzhipeng's avatar fangzhipeng

添加启动脚本

parent e59ba7ff
......@@ -18,7 +18,7 @@ def login_require(func):
raise BussinessException(error_type.NEED_LOGIN)
#正式环境对token进行校验
if not config.isDebug:
# if not config.isDebug:
token = request.headers.get('token')
if not user_id or not token:
raise BussinessException(error_type.NEED_LOGIN)
......
#!/usr/bin/env bash
ps -ef | grep 'python application.py' |awk '{print $2}'|xargs kill -9
./start.sh
\ No newline at end of file
#!/usr/bin/env bash
nohup ~/.pyenv/versions/project/bin/python application.py &
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment