mirror of
https://github.com/thatmattlove/hyperglass.git
synced 2026-01-17 08:48:05 +00:00
716 B
716 B
More than likely, you'll want to run Hyperglass as a service so that it automatically starts on server boot. Any service manager can be used, however Ubuntu systemd instructions are included as a reference.
For easy installation, migrate the example systemd service:
$ cd /opt/hyperglass/
$ python3 manage.py migratesystemd
This copies the example systemd service to /etc/systemd/system/hyperglass.service
Example
[Unit]
Description=Hyperglass
After=network.target
[Service]
User=www-data
Group=www-data
WorkingDirectory=/opt/hyperglass
ExecStart=/usr/local/bin/gunicorn -c /opt/hyperglass/hyperglass/gunicorn_config.py hyperglass.wsgi
[Install]
WantedBy=multi-user.target