- Setup PostgreSQL database
- Setup Redis
- Copy the
.env.example
file to.env
and fill in the required values. - Create a Python virtual environment:
python3 -m venv env
- Activate the environment:
source env/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Make sure the service starter has execute permissions:
Note: After installing any new dependencies, update the requirements.txt
file: pip freeze > requirements.txt
chmod +x service_starter.py
dev
python run_with_restart.py
prod
python main.py