- Clone the repository.
- Download the .env from Notion Docs.
- Make a virtual environment using
python3 -m venv venv
- Activate the virtual environment using
source venv/bin/activate
- Install the dependencies using
pip install -r requirements.txt
- Migration of the database using
export GOOGLE_APPLICATION_CREDENTIALS=credentials.json python manage.py migrate
- Run the server using
python manage.py runserver
- Run the celery in another terminal
celery -A btalk worker -l info
Restarting the Server app
sudo systemctl restart btalk
sudo systemctl status btalk
sudo service btalk-celery-worker restart
gunicorn --bind 0.0.0.0:8000 myproject.asgi -w 4 -k uvicorn.workers.UvicornWorker# btalk-backup