deploy: Use RedHat Software Collections

RHSCL provides patched versions of Python and Nginx
This commit is contained in:
James Graham
2020-03-30 17:18:19 +01:00
parent da57108e3e
commit 74d3c1b091
6 changed files with 34 additions and 20 deletions

View File

@@ -2,8 +2,8 @@
Description=uWSGI Emperor Service
[Service]
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown {{ web_user }}:{{ web_group }} /run/uwsgi'
ExecStart=/usr/local/bin/uwsgi --emperor /etc/uwsgi/sites
ExecStartPre=/bin/bash -c 'mkdir -p /run/uwsgi; chown {{ web_user }}:{{ web_group }} /run/uwsgi; source scl_source rh-python36'
ExecStart=/bin/scl enable rh-python36 "uwsgi --emperor /etc/uwsgi/sites"
Restart=always
KillSignal=SIGQUIT
Type=notify