Compare commits
No commits in common. "f82cd4aff2edb2ffe843916f0e12193dd90c3035" and "67343b4b6013a547bbabb9e421505dc4174ee04d" have entirely different histories.
f82cd4aff2
...
67343b4b60
22
README.md
22
README.md
@ -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
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
python -m weblight $@
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user