公司瞎幾把搞了個微信小程序,服務(wù)器部在阿里云上用的Ubuntu。服務(wù)器重啟后就要手動重啟一下小程序的gunicorn服務(wù)器
先連上服務(wù)器
image.png
CD到有g(shù)unicorn.py配置文件的路徑下
cd ../
cd home/we_idphoto/
source venv/bin/activate
cd we_idphoto/
image.png
敲重啟命令就好了
gunicorn -c gunicorn.py api:app