重启gunicorn服务器
2017-05-16 本文已影响695人
MccReeee
公司瞎几把搞了个微信小程序,服务器部在阿里云上用的Ubuntu。服务器重启后就要手动重启一下小程序的gunicorn服务器
先连上服务器

CD到有gunicorn.py配置文件的路径下
cd ../
cd home/we_idphoto/
source venv/bin/activate
cd we_idphoto/

敲重启命令就好了
gunicorn -c gunicorn.py api:app
