mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
1.5 KiB
1.5 KiB
For production builds, we'll want to have a real WSGI front end instead of the built in Flask developer web server. For time's sake, Ubuntu 18.04 instructions are provided. That said, this is a pretty generic setup and should be easily replicable to other platforms.
Gunicorn Installation
Gunicorn is a WSGI server written in Python.
Install
# pip3 install gunicorn
Configure
Locate your gunicorn
executable with which gunicorn
.
Permissions
Gunicorn requires read/write/executable access to the entire hyperglass/hyperglass
directory in order to read its configuration and execute the python code. If running gunicorn as www-data, fix permissions with:
# chown -R www-data:www-data /opt/hyperglass/hyperglass
# chmod -R 744 /opt/hyperglass/hyperglass