Added supervisor conf
This commit is contained in:
parent
8657dad379
commit
b7ece75cb5
|
@ -0,0 +1,8 @@
|
|||
[program:gunicorn]
|
||||
command = /home/app/virtualenv/bin/python /home/app/app/manage.py run_gunicorn -w 4 -k gevent
|
||||
directory = /home/app/app
|
||||
user = app
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stdout_logfile = /var/log/supervisor/gunicorn.log
|
||||
stderr_logfile = /var/log/supervisor/gunicorn_err.log
|
|
@ -25,6 +25,8 @@ pacman -S git --noconfirm
|
|||
|
||||
echo "=> Installing supervisor"
|
||||
pacman -S supervisor --noconfirm
|
||||
systemctl start supervisord
|
||||
systemctl enable supervisord
|
||||
|
||||
echo "=> Installing nodejs and dependencies"
|
||||
pacman -S nodejs --noconfirm
|
||||
|
@ -45,3 +47,5 @@ su - app -c "echo 'source .environment' > .bash_profile"
|
|||
echo "[REMEMBER!]"
|
||||
echo " - Create ssh keypair for the app user."
|
||||
echo " - Configure sudo to let app user execute the maintenance scripts."
|
||||
echo " - Configure supervisor to include the app configuration."
|
||||
echo " - Configure nginx to include the app configuration."
|
||||
|
|
Loading…
Reference in New Issue