📜  在 linux 中为 gunicorn 创建服务 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:29.142000             🧑  作者: Mango

代码示例1
[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/myprojectdir
ExecStart=/home/ubuntu/.local/bin/gunicorn --bind 127.0.0.1:8000 app:app

[Install]
WantedBy=multi-user.target