Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

create service for gunicorn in linux

[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
 
PREVIOUS NEXT
Tagged: #create #service #gunicorn #linux
ADD COMMENT
Topic
Name
4+5 =