From 25213380b70eea655032633ab170e919b1c52837 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Tue, 3 May 2016 11:54:02 +0200 Subject: [PATCH] Laravel Framework initialisieren: ( Falls nocht nicht passiert ) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit composer update schreibrechte für www-data auf "storage", "bootstrap/cache" .env Datei erstellen ( Aktuell vorerst kopieren der .env-example nach .env ) App-Key generieren ( falls noch nicht geschehen ) --- .gitlab-ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46c9869fb..87d745228 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,22 @@ update: before_script: + # Abhängigkeiten überprüfen - which virtualbox - which vagrant - which composer - which git - which php + # Pfad zum neu geklonten Repo - path=`pwd` - cd ~/ + # Klone das Repo neu, falls es noch nicht existiert - if [ ! -d ~/MetaGer ] ; then git clone "$path" ; fi + # Falls notwendig Laravel-Framework initialisieren: + - cd MetaGer + - composer update + - chmod -R 777 storage/ bootstrap/cache/ + - if [ ! -f .env ] ; then cp .env.example .env ; fi + - if [ $(grep "SomeRandomString" .env) ] ; then php artisan key:generate ; fi script: - cd ~/MetaGer - git pull "$path" \ No newline at end of file -- GitLab