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