Use supervisor to start gunicorn on init
see this guide
http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
gunicorn_start.bash
#!/bin/bash
NAME="hello_app" # Name of the application
DJANGODIR=/webapps/hello_django/hello # Django project directory
SOCKFILE=/we
Antonis, thank you.
Yes, this is upstart. I'll try it with systemd as you suggested.
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr..
Hello,
Is this upstart? I thought that Ubuntu doesn't use upstart any more, but that it
uses systemd instead (since version 15.04 IIRC). Maybe it contains upstart for
backwards compatibility, but I think it's not a good idea to invest in learning
upstart right now.
If you want to do it with syste
*Ubuntu 16.04.3 Desktop version.*
*gunicorn (version 19.7.1)*
*virtualenv 15.1.0*
I'd like Gunicorn to start on boot. Gunicorn is integrated with *Django*.
*/etc/init/photoarchive.conf*
description "Gunicorn server for photoarchive"
start on runlevel [2345]
stop on runlevel [!2345]
resp
4 matches
Mail list logo