22 lines
611 B
SYSTEMD
22 lines
611 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Shipping Service Beta Service
|
||
|
|
After=network.target
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
User=ubuntu
|
||
|
|
WorkingDirectory=/home/ubuntu/shippingservice
|
||
|
|
EnvironmentFile=/home/ubuntu/shippingservice/.env.beta
|
||
|
|
ExecStart=/home/ubuntu/shippingservice/venv/bin/gunicorn shippingservice_project.wsgi:application \
|
||
|
|
--bind 0.0.0.0:8086 \
|
||
|
|
--workers 3 \
|
||
|
|
--access-logfile /home/ubuntu/shippingservice/logs/gunicorn-beta-access.log \
|
||
|
|
--error-logfile /home/ubuntu/shippingservice/logs/gunicorn-beta-error.log \
|
||
|
|
--log-level info \
|
||
|
|
--capture-output
|
||
|
|
|
||
|
|
Restart=always
|
||
|
|
RestartSec=5
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=multi-user.target
|