Changes

Jump to navigation Jump to search
21 bytes added ,  10:52, 7 February 2019
Line 51: Line 51:  
== Automatic restart ==
 
== Automatic restart ==
 
Add the following lines to your service file at Service block
 
Add the following lines to your service file at Service block
 +
[Service]
 +
...
 
  Restart=always
 
  Restart=always
 
  RestartSec=3
 
  RestartSec=3
 +
...
    
== Gunicorn ==
 
== Gunicorn ==
 
   ExecStart=/virtualenv/path/bin/gunicorn -w3 --timeout 300 --access-logfile /var/log/gunicorn/app-access.log --error-logfile /var/log/gunicorn/app-error.log --bind unix:/sockets/app-socket.sock App.wsgi
 
   ExecStart=/virtualenv/path/bin/gunicorn -w3 --timeout 300 --access-logfile /var/log/gunicorn/app-access.log --error-logfile /var/log/gunicorn/app-error.log --bind unix:/sockets/app-socket.sock App.wsgi

Navigation menu