summaryrefslogtreecommitdiff
path: root/ansible/gunicorn.service.j2
blob: fe9c69c875420d71f66f51d9e918514c5821e756 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[Unit]
Description=gunicorn daemon
After=network.target

[Service]
User=ec2-user
Group=nginx
WorkingDirectory=/opt/image_processor
ExecStart=/opt/image_processor/venv/bin/gunicorn --workers 3 --bind unix:{{ app_directory }}/myapp.sock -m 007 wsgi:app

[Install]
WantedBy=multi-user.target