From 558b43870a9413c38e4aba18c0bcb965e0310114 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Tue, 19 Jan 2021 17:29:41 +1100 Subject: [PATCH] added instructions on how to run all this --- README | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README b/README index 1658a76..c5517d1 100644 --- a/README +++ b/README @@ -13,6 +13,15 @@ pip packages: * pytz +To run debug version of web server: + FLASK_APP=main FLASK_ENV=development flask run --host=192.168.0.2 + +to run prod version of web server: + gunicorn --bind="192.168.0.2:5000" --threads=2 --workers=2 main:app + +Also have to run the job manager for jobs to work: + python3 pa_job_manager.py + To rebuild DB: ###BE CAREFUL this completely destroys the database contents and starts from