From 4672b84f7362896e0d517371c92ad20c955f3188 Mon Sep 17 00:00:00 2001 From: Mindiell <mindiell@mindiell.net> Date: Mon, 23 Jul 2018 19:35:25 +0200 Subject: [PATCH] =?UTF-8?q?Tentative=20de=20d=C3=A9ploiement=20automatique?= =?UTF-8?q?=20sur=20le=20serveur=20de=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ci/install.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ci/install.sh diff --git a/ci/install.sh b/ci/install.sh new file mode 100644 index 0000000..024728b --- /dev/null +++ b/ci/install.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Ce script est utilisé pour paramétrer l'environnement du site + +cd /home/don/don +git pull origin $CD_BUILD_REF_NAME + +composer install --no-dev +composer update + +# Let's run the migrations +if [ -e "phinx.yml" ] +then + php vendor/robmorgan/phinx/bin/phinx migrate -e production +else + php vendor/robmorgan/phinx/bin/phinx init +fi + -- GitLab