Compare commits

...

No commits in common. "f82cd4aff2edb2ffe843916f0e12193dd90c3035" and "67343b4b6013a547bbabb9e421505dc4174ee04d" have entirely different histories.

3 changed files with 17 additions and 18 deletions

View File

@ -12,13 +12,25 @@ python setup.py install
### Manual ### Manual
```shell Create wrapper script (e.g. wrapper.py):
start-weblight
```python
from weblight import app
if __name__ == "__main__":
app.run()
``` ```
### systemd Execute the wrapper script:
```shell ```shell
$ systemctl enable weblight python3 wrapper.py
$ systemctl start weblight
``` ```
### gunicorn
```shell
gunicorn --bind 0.0.0.0:80 weblight:app
```

View File

@ -1,3 +0,0 @@
#!/bin/bash
python -m weblight $@

View File

@ -1,10 +0,0 @@
[Unit]
Description=Weblight
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/local/bin/start-weblight
[Install]
WantedBy=multi-user.target