From 588ffdadfb18b9ab4d434d150e369e2612f46677 Mon Sep 17 00:00:00 2001 From: Midgard Date: Fri, 17 Jul 2020 11:32:39 +0200 Subject: [PATCH] Add production deployment docs --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 785f9a9..67ea409 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,16 @@ Run `pip-compile --upgrade` For more information about managing the dependencies see [jazzband/pip-tools: A set of tools to keep your pinned Python dependencies fresh.](https://github.com/jazzband/pip-tools) +## Production +To prepare the application in a production environment, follow the same steps as for *Local setup* up to and including `./populate-db.sh`. + +Set DEBUG to False in `app/config.py`. + +See [Flask's deployment documentation](https://flask.palletsprojects.com/en/1.1.x/deploying/#self-hosted-options). + +Set the server's Python interpreter to `/path/to/haldis/venv/bin/python`. Doing `source venv/bin/activate` is not necessary when that binary is used. + + ## Authors * **Feliciaan De Palmenaer** - *Initial work* - [Github](https://github.com/feliciaan)