diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2024-04-29 01:20:53 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2024-04-29 01:20:53 +0300 |
| commit | eab060df8cfde1137d24f372a2396963c69b5965 (patch) | |
| tree | e9753d0f435eae980954a49619ae7aaae7c76a45 /ansible/gunicorn.service.j2 | |
| download | cloudrender-infra-eab060df8cfde1137d24f372a2396963c69b5965.tar.xz cloudrender-infra-eab060df8cfde1137d24f372a2396963c69b5965.zip | |
Intial IaC code and setting up deployment using ansible
Diffstat (limited to 'ansible/gunicorn.service.j2')
| -rw-r--r-- | ansible/gunicorn.service.j2 | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible/gunicorn.service.j2 b/ansible/gunicorn.service.j2 new file mode 100644 index 0000000..fe9c69c --- /dev/null +++ b/ansible/gunicorn.service.j2 @@ -0,0 +1,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 + |
