Skip to content
Snippets Groups Projects
Commit 9ab4b0bb authored by benoit-cty's avatar benoit-cty
Browse files

Gestion du .env

parent e19525c4
No related branches found
No related tags found
1 merge request!19Ajoute le job de CI deploy-prod
File moved
......@@ -29,6 +29,7 @@ before_script:
- echo -e "\e[0Ksection_end:`date +%s`:poetry_install_section\r\e[0K"
# set the virtual environment to a '.venv/' in the project directory
- poetry config virtualenvs.in-project true
- cp .env.example .env
install-repository:
stage: install
......@@ -179,3 +180,5 @@ deploy-prod:
# defined in: https://git.leximpact.dev/leximpact/simulateur-dotations-communes/leximpact-dotations-back/-/environments
name: production
when: manual
only:
- main
......@@ -40,6 +40,7 @@ poetry env list
Exécuter `leximpact-dotations-back` revient à exécuter son API web grâce à la commande suivante :
```shell
cp .env.example .env
# mode développement
poetry run fastapi dev leximpact_dotations_back/main.py
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment