Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
76825757
Commit
76825757
authored
8 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
Die Überprüfung, ob der Webserver läuft wurde in ein .sh Skript ausgelagert
parent
64ecf140
No related branches found
Branches containing commit
No related tags found
1 merge request
!3
Master
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+2
-8
2 additions, 8 deletions
.gitlab-ci.yml
deploy/checkServerStatus.sh
+24
-0
24 additions, 0 deletions
deploy/checkServerStatus.sh
with
26 additions
and
8 deletions
.gitlab-ci.yml
+
2
−
8
View file @
76825757
...
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
deploy/checkServerStatus.sh
0 → 100755
+
24
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment