sudo cp contrib/gunicorn.d/alarmdecoder /etc/gunicorn.d/
Edit /etc/gunicorn.d/alarmdecoder and change the user/group you'd like it to run as.
Change permissions on /opt/alarmdecoder-webapp to grant permissions for your chosen user.
these 3 steps? yeah. heres the current contents of /etc/gunicorn.d/alarmdecoder:
- Code: Select all
CONFIG = {
'working_dir': '/opt/alarmdecoder-webapp',
'user': 'pi',
'group': 'dialout',
'args': (
'--worker-class=socketio.sgunicorn.GeventSocketIOWorker',
'--timeout=120',
'--env=POLICY_SERVER=0',
#'--debug',
#'--log-level=debug',
'wsgi:application',
),
}