公司瞎几把搞了个微信小程序,服务器部在阿里云上用的Ubuntu。服务器重启后就要手动重启一下小程序的gunicorn服务器
先连上服务器
image.png
CD到有gunicorn.py配置文件的路径下
cd ../
cd home/we_idphoto/
source venv/bin/activate
cd we_idphoto/
image.png
敲重启命令就好了
gunicorn -c gunicorn.py api:app
公司瞎几把搞了个微信小程序,服务器部在阿里云上用的Ubuntu。服务器重启后就要手动重启一下小程序的gunicorn服务器
cd ../
cd home/we_idphoto/
source venv/bin/activate
cd we_idphoto/
gunicorn -c gunicorn.py api:app