Skip to content
Snippets Groups Projects
Commit 76825757 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Die Überprüfung, ob der Webserver läuft wurde in ein .sh Skript ausgelagert

parent 64ecf140
No related branches found
No related tags found
1 merge request!3Master
......@@ -8,14 +8,8 @@ update:
- 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" ; cd ~/MetaGer ; composer update ; chmod -R 777 storage/ bootstrap/cache ; fi
# Falls notwendig Laravel-Framework initialisieren:
- if [ ! -f .env ] ; then cp .env.example .env ; fi
- if [ $(grep "SomeRandomString" .env) ] ; then php artisan key:generate ; fi
# Falls notwendig Homestead Server intialisieren:
- cd ~/
- cd ~/MetaGer
- ./deploy/checkServerStatus.sh
script:
- cd ~/MetaGer
- git pull "$path"
......
# Klone das Repo neu, falls es noch nicht existiert
if [ ! -d ~/MetaGer ]
then
cd ~/
git clone "$path"
cd ~/MetaGer
composer update
chmod -R 777 storage/ bootstrap/cache
fi
# Falls notwendig Laravel-Framework initialisieren:
if [ ! -f ~/MetaGer/.env ]
then
cd ~/MetaGer
cp .env.example .env
fi
if [ $(grep "SomeRandomString" .env) ]
then
cd ~/MetaGer
php artisan key:generate
fi
# Falls notwendig Homestead Server intialisieren:
# - cd ~/
# - vagrant box add --provider virtualbox laravel/homestead
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment