Expand readme and added port in wsgi

This commit is contained in:
Serj
2023-04-26 18:54:59 +01:00
parent 1609b4562d
commit 16a540b89b
2 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
from app import app
if __name__ == "__main__":
app.run()
app.run(debug=True, port=5001)