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
1bc18ca4
Commit
1bc18ca4
authored
8 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' of
http://gitlab.metager3.de:1234/dominik/MetaGer
into develop
parents
c961209d
af514e03
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Develop
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-1
0 additions, 1 deletion
.gitignore
.gitlab-ci.yml
+6
-13
6 additions, 13 deletions
.gitlab-ci.yml
deploy/Homestead.yaml
+34
-0
34 additions, 0 deletions
deploy/Homestead.yaml
deploy/checkServerStatus.sh
+48
-0
48 additions, 0 deletions
deploy/checkServerStatus.sh
with
88 additions
and
14 deletions
.gitignore
+
0
−
1
View file @
1bc18ca4
/vendor
/vendor
/node_modules
/node_modules
/public/storage
/public/storage
Homestead.yaml
Homestead.json
Homestead.json
.env
.env
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
6
−
13
View file @
1bc18ca4
update
:
update
:
only
:
-
tags
-
triggers
before_script
:
before_script
:
# Abhängigkeiten überprüfen
# Abhängigkeiten überprüfen
-
which virtualbox
-
which virtualbox
...
@@ -6,20 +9,10 @@ update:
...
@@ -6,20 +9,10 @@ update:
-
which composer
-
which composer
-
which git
-
which git
-
which php
-
which php
script
:
# Pfad zum neu geklonten Repo
# Pfad zum neu geklonten Repo
-
path=`pwd`
-
path=`pwd`
# 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
-
tmp=$(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
# Falls notwendig Homestead Server intialisieren:
-
cd ~/
-
cd ~/
script
:
-
$path/deploy/checkServerStatus.sh "$path"
-
cd ~/MetaGer
-
cd ~/MetaGer
-
git pull "$path"
-
git pull "$path"
only
:
\ No newline at end of file
-
master@gitlab.metager3.de:1234/
\ No newline at end of file
This diff is collapsed.
Click to expand it.
deploy/Homestead.yaml
0 → 100644
+
34
−
0
View file @
1bc18ca4
---
ip
:
"
192.168.10.10"
memory
:
2048
cpus
:
1
provider
:
virtualbox
authorize
:
~/.ssh/id_rsa.pub
keys
:
-
~/.ssh/id_rsa
folders
:
-
map
:
~/MetaGer
to
:
/home/vagrant/MetaGer
sites
:
-
map
:
192.168.10.10
to
:
/home/vagrant/MetaGer/public
databases
:
-
homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
This diff is collapsed.
Click to expand it.
deploy/checkServerStatus.sh
0 → 100755
+
48
−
0
View file @
1bc18ca4
path
=
"
$1
"
# 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"
~/MetaGer/.env
)
]
then
cd
~/MetaGer
php artisan key:generate
fi
# Falls notwendig Homestead Server intialisieren:
if
[
!
-d
~/Homestead
]
then
cd
~/
# Wir brauchen unseren öffentlichen ssh Schlüssel:
if
[
!
-d
.ssh
]
then
mkdir
.ssh
chmod
700 .ssh
fi
if
[
!
-f
.ssh/id_rsa.pub
]
then
cd
.ssh
ssh-keygen
-t
rsa
-N
""
-f
id_rsa
cd
~/
fi
vagrant box add
--provider
virtualbox laravel/homestead
git clone https://github.com/laravel/homestead.git Homestead
cd
Homestead/
bash init.sh
cd
~/
cp
-f
"
$path
/deploy/Homestead.yaml"
.homestead/
cd
Homestead/
vagrant up
echo
"Your server is now running under http://localhost:8000"
fi
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