From d57c648d7faf017291d8dc1e333192963293d1cd Mon Sep 17 00:00:00 2001 From: Mathieu Lagace Date: Sun, 4 Aug 2019 19:19:33 -0400 Subject: [PATCH] Mise a jour CI/CD --- .gitlab-ci.yml | 4 ++-- Envoy.blade.php | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4488a5d1..1d125cf4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,7 +21,7 @@ unit_test: - composer install - php artisan key:generate -deploy_production: +deploy_697: stage: deploy_697 script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' @@ -37,7 +37,7 @@ deploy_production: only: - master -deploy_production: +deploy_736: stage: deploy_736 script: - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' diff --git a/Envoy.blade.php b/Envoy.blade.php index c9c466a1..d4068b8a 100644 --- a/Envoy.blade.php +++ b/Envoy.blade.php @@ -52,6 +52,9 @@ echo 'Setting permission' chmod -R 777 {{ $app_dir_697 }}/current/bootstrap/ + + echo 'Migrate DB' + {{ $app_dir_697 }}/current/php artisan migrate @endtask @task('clone_repository_736') @@ -81,4 +84,7 @@ echo 'Setting permission' chmod -R 777 {{ $app_dir_736 }}/current/bootstrap/ + + echo 'Migrate DB' + {{ $app_dir_736 }}/current/php artisan migrate @endtask \ No newline at end of file