Editorial content indexer
Environment variable
In order to run the code, some environment variables are needed. They are specified in the template.env
file at the root of the project.
For a local deployment:
cp env-template.sh env.sh
- Edit env.sh according to the chosen configuration
source env.sh
Running the app with docker
envsubst < config.template.yaml > config.yaml
docker-compose up [-d]
Running the app in dev
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
gunicorn --workers=2 -b 0.0.0.0:8001 --log-level=debug api:api
ou python main.py