Merge branch 'master' of git.kawen.site:Lili/tlapbot

This commit is contained in:
Lili (Tlapka) 2022-11-29 11:01:52 +01:00
commit 5838f15b1c
1 changed files with 4 additions and 0 deletions

View File

@ -178,6 +178,10 @@ gunicorn -w 1 'tlapbot:create_app()'
You should also set `GUNICORN` in your `config.py` file to `True` to see Tlapbot logs in your gunicorn output. By default, gunicorn will only show `error` and `critical` warnings, but you can set the `--log-level` argument when running the app to set it to `warning`, `debug` or `info` too. You should also set `GUNICORN` in your `config.py` file to `True` to see Tlapbot logs in your gunicorn output. By default, gunicorn will only show `error` and `critical` warnings, but you can set the `--log-level` argument when running the app to set it to `warning`, `debug` or `info` too.
```bash
gunicorn -w 1 --log-level debug 'tlapbot:create_app()'
```
**⚠WARNING:** Because of the way the scheduler is initialized in the project, **⚠WARNING:** Because of the way the scheduler is initialized in the project,
I recommend running tlapbot with only one gunicorn worker. (`-w 1`) I recommend running tlapbot with only one gunicorn worker. (`-w 1`)