Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-dotations-back
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur dotations aux communes
leximpact-dotations-back
Commits
c8ceb3b9
Commit
c8ceb3b9
authored
1 month ago
by
benoit-cty
Browse files
Options
Downloads
Patches
Plain Diff
Deplace le cp avant le install
parent
5399a88a
No related branches found
No related tags found
1 merge request
!19
Ajoute le job de CI deploy-prod
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-1
2 additions, 1 deletion
.gitlab-ci.yml
README.md
+11
-2
11 additions, 2 deletions
README.md
with
13 additions
and
3 deletions
.gitlab-ci.yml
+
2
−
1
View file @
c8ceb3b9
...
...
@@ -22,6 +22,8 @@ cache:
# run script before each job's script
before_script
:
# Initialise le .env
-
cp .env.example .env
# install poetry (and collapse section)
-
echo -e "\e[0Ksection_start:`date +%s`:poetry_install_section[collapsed=true]\r\e[0KInstalling poetry..."
-
pip download --dest=${PIP_DOWNLOAD_DIR} poetry
# STEP 1
...
...
@@ -29,7 +31,6 @@ 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
...
...
This diff is collapsed.
Click to expand it.
README.md
+
11
−
2
View file @
c8ceb3b9
...
...
@@ -19,13 +19,23 @@ poetry env use python3.11
## Installer `leximpact-dotations-back`
Initialiser la configuration en copiant le modèle de fichier
`.env`
:
```
shell
# dans le répertoire racine du dépôt
# (celui où se trouve ce fichier README.md)
cp
.env.example .env
```
Vérifier que la version de Python associée à Poetry est bien la version attendue :
```
shell
poetry run python
--version
# résultat attendu : Python 3.11.x
```
Pour installer les dépendances de ce dépôt, exécuter la commande suivante dans un terminal Shell :
```
shell
poetry
install
```
...
...
@@ -40,7 +50,6 @@ 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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment