README.md 634 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 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]`
DESPRES Damien's avatar
DESPRES Damien committed
17
18
19
20
21
22
23
24
25
26
27


## 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