Skip to content

Commit

Permalink
chore: docker compose path
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard committed Dec 18, 2024
1 parent 40ebb37 commit a0550d8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .infra/ansible/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- name: Récupération des images docker
shell:
chdir: /opt/app
cmd: "/opt/app/scripts/docker-compose.sh pull --policy missing"
cmd: "/opt/app/tools/docker-compose.sh pull --policy missing"

- name: Récupération du status de la stack
shell:
Expand Down
2 changes: 1 addition & 1 deletion .infra/env.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ app_version=latest
product_name=tmpl
repo_name=template-apprentissage
database_name=tmpl
domain_name=sandbox
domain_name=tmpl

[production]
217.182.105.195
Expand Down
2 changes: 1 addition & 1 deletion .infra/files/scripts/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -euo pipefail
#Needs to be run as sudo

/opt/app/scripts/docker-compose.sh run --rm --no-deps server yarn cli "$@"
/opt/app/tools/docker-compose.sh run --rm --no-deps server yarn cli "$@"
2 changes: 1 addition & 1 deletion .infra/files/scripts/migrations-status.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

/opt/app/scripts/docker-compose.sh run --rm --no-deps server yarn cli migrations:status
/opt/app/tools/docker-compose.sh run --rm --no-deps server yarn cli migrations:status
2 changes: 1 addition & 1 deletion .infra/files/scripts/migrations-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi

run_migrations(){
echo "Application des migrations ..."
/opt/app/scripts/docker-compose.sh run --rm --no-deps server yarn cli migrations:up 2>&1 | tee "$LOG_FILEPATH"
/opt/app/tools/docker-compose.sh run --rm --no-deps server yarn cli migrations:up 2>&1 | tee "$LOG_FILEPATH"
}

run_migrations
2 changes: 1 addition & 1 deletion .infra/files/scripts/trigger-indexes-creation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ fi

trigger_indexes_creation(){
echo "Création des index mongoDb ..."
/opt/app/scripts/docker-compose.sh run --rm --no-deps server yarn cli indexes:recreate --queued
/opt/app/tools/docker-compose.sh run --rm --no-deps server yarn cli indexes:recreate --queued
}

trigger_indexes_creation

0 comments on commit a0550d8

Please sign in to comment.