add gunicorn install to production docs

This commit is contained in:
rra 2024-04-16 14:34:22 +02:00
parent 2bf9b4a8c8
commit be4dbfb107

View file

@ -214,6 +214,13 @@ Once you have ngrok working, edit the `.env` file and change the `SERVER_NAME` v
## Running PieFed in production
Running PieFed in production relies on several additional packages that need to be installed.
```bash
source venv/bin/activate #if not already in virtual environment
pip3 install gunicorn celery
```
Copy `celery_worker.default.py` to `celery_worker.py`. Edit `DATABASE_URL` and `SERVER_NAME` to have the same values as in `.env`.
Edit `gunicorn.conf.py` and change `worker_tmp_dir` if needed.