mirror of
https://github.com/arc53/DocsGPT
synced 2024-11-16 00:12:46 +00:00
Expanded developer start a little bit
This commit is contained in:
parent
36f0aacb19
commit
7aafac5b5e
14
README.md
14
README.md
@ -68,13 +68,19 @@ Spin up only 2 containers from docker-compose.yaml (by deleting all services exc
|
|||||||
Make sure you have python 3.10 or 3.11 installed
|
Make sure you have python 3.10 or 3.11 installed
|
||||||
|
|
||||||
1. Navigate to `/application` folder
|
1. Navigate to `/application` folder
|
||||||
2. Install dependencies
|
|
||||||
|
2. Install redis server `sudo apt install redis-server`
|
||||||
|
3. Start redis server `sudo service redis-server start`
|
||||||
|
4. Export required variables
|
||||||
|
`export CELERY_BROKER_URL=redis://localhost:6379/0`
|
||||||
|
`export CELERY_RESULT_BACKEND=redis://localhost:6379/1`
|
||||||
|
5. Install dependencies
|
||||||
`pip install -r requirements.txt`
|
`pip install -r requirements.txt`
|
||||||
3. Prepare .env file
|
6. Prepare .env file
|
||||||
Copy .env_sample and create .env with your openai api token
|
Copy .env_sample and create .env with your openai api token
|
||||||
4. Run the app
|
7. Run the app
|
||||||
`python app.py`
|
`python app.py`
|
||||||
5. Start worker with `celery -A app.celery worker -l INFO`
|
8. Start worker with `celery -A app.celery worker -l INFO`
|
||||||
|
|
||||||
To start frontend
|
To start frontend
|
||||||
1. Navigate to `/frontend` folder
|
1. Navigate to `/frontend` folder
|
||||||
|
Loading…
Reference in New Issue
Block a user