From 16a540b89b92da0e77eb5f288bf2c99e3f3b506d Mon Sep 17 00:00:00 2001 From: Serj Date: Wed, 26 Apr 2023 18:54:59 +0100 Subject: [PATCH] Expand readme and added port in wsgi --- README.md | 4 ++-- application/wsgi.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 23caf226..4957231e 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,13 @@ Make sure you have python 3.10 or 3.11 installed 5. Export required variables `export CELERY_BROKER_URL=redis://localhost:6379/0` `export CELERY_RESULT_BACKEND=redis://localhost:6379/1` -`export MONGO_URI=mongodb://localhost=localhost:27017/docsgpt` +`export MONGO_URI=mongodb://localhost:27017/docsgpt` 6. Install dependencies `pip install -r requirements.txt` 7. Prepare .env file Copy .env_sample and create .env with your openai api token 8. Run the app -`python app.py` +`python wsgi.py` 9. Start worker with `celery -A app.celery worker -l INFO` To start frontend diff --git a/application/wsgi.py b/application/wsgi.py index 11e7de6d..05ee157f 100644 --- a/application/wsgi.py +++ b/application/wsgi.py @@ -1,4 +1,4 @@ from app import app if __name__ == "__main__": - app.run() \ No newline at end of file + app.run(debug=True, port=5001) \ No newline at end of file