lukepierce / brewMonitor

Web Server to Monitor Fermentation
1 stars 1 forks source link

Running gunicorn as non-root doesn't work #6

Open jandersson opened 9 years ago

jandersson commented 9 years ago

Is running gunicorn as root good practice? Can it be fixed to run as the user executing it?

lukepierce commented 9 years ago

This maybe related to gaining access to the socket file in the temp directory. The socket file is there to provide communication between the nginx web server and gunicorn which runs the python code.

lukepierce commented 9 years ago

Also, I would recommend installing python supervisor which allows for control over gunicorn and nginx and gives status alerts on whether they are functioning.