Skip to content
Snippets Groups Projects
user avatar
DESPRES Damien authored
3f046e88
History

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:

  1. cp env-template.sh env.sh
  2. Edit env.sh according to the chosen configuration
  3. source env.sh

Running the app with docker

  1. envsubst < config.template.yaml > config.yaml
  2. 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