Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
76825757
Commit
76825757
authored
May 03, 2016
by
Dominik Hebeler
Browse files
Die Überprüfung, ob der Webserver läuft wurde in ein .sh Skript ausgelagert
parent
64ecf140
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
76825757
...
@@ -8,14 +8,8 @@ update:
...
@@ -8,14 +8,8 @@ update:
-
which php
-
which php
# Pfad zum neu geklonten Repo
# Pfad zum neu geklonten Repo
-
path=`pwd`
-
path=`pwd`
-
cd ~/
-
cd ~/MetaGer
# Klone das Repo neu, falls es noch nicht existiert
-
./deploy/checkServerStatus.sh
-
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 ~/
script
:
script
:
-
cd ~/MetaGer
-
cd ~/MetaGer
-
git pull "$path"
-
git pull "$path"
...
...
deploy/checkServerStatus.sh
0 → 100755
View file @
76825757
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment