add gunicorn for running it "properly"

This commit is contained in:
Faelix Incident Handler
2018-06-16 14:29:23 +00:00
parent d13a64f863
commit a2a4461e16
3 changed files with 31 additions and 1 deletions

View File

@ -1,3 +1,15 @@
## Installation
We are using [Pipenv](https://docs.pipenv.org) to make our lives easier:
```sh
git clone https://gitea.faelix.net/FAELIX/incident_handler.git
cd incident_handler
pipenv install --three
```
## Configuration
Example `settings.cfg` file:
```python
@ -22,3 +34,12 @@ PUBLIC_INCIDENT_PREFIX = "FI#"
STATUS_PAGE_URL = "https://status.faelix.net/"
INCIDENT_URL_SCHEME = STATUS_PAGE_URL + "event/%s/"
```
## Running
```sh
export FIH_SETTINGS=~/incident_handler/settings.cfg
export FLASK_APP=fih.py
cd ~/incident_handler
flask run -p 3333
```