mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
add gunicorn install to production docs
This commit is contained in:
parent
2bf9b4a8c8
commit
be4dbfb107
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
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`.
|
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.
|
Edit `gunicorn.conf.py` and change `worker_tmp_dir` if needed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue