save
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
[Unit]
|
||||
Description=Hair change color Flask service (meida.xiangsilian.com/hair)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=ubuntu
|
||||
Group=ubuntu
|
||||
WorkingDirectory=/home/ubuntu/hair_change_color/backend
|
||||
ExecStart=/home/ubuntu/hair_change_color/.venv/bin/gunicorn \
|
||||
-w 2 \
|
||||
-b 127.0.0.1:5000 \
|
||||
--timeout 180 \
|
||||
--access-logfile /home/ubuntu/log/hair_access.log \
|
||||
--error-logfile /home/ubuntu/log/hair_error.log \
|
||||
app:app
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user