Skip to content
GitLab
Menu
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
ff23f7f8
Commit
ff23f7f8
authored
Jul 25, 2016
by
Dominik Hebeler
Browse files
Update .gitlab-ci.yml
parent
5f3c4bb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ff23f7f8
...
...
@@ -34,6 +34,43 @@ update(144.76.113.134):
-
php ~/MetaGer/artisan queue:restart
-
php ~/MetaGer/artisan migrate --force
-
php ~/MetaGer/artisan up
update(metager2)
:
tags
:
-
metager2
only
:
-
development
before_script
:
# Abhängigkeiten überprüfen
-
which composer
-
which git
-
which php7.0
-
which sqlite3
script
:
# Pfad zum neu geklonten Repo
-
path=`pwd`
-
cd ~/
-
if [ -d MetaGer_neu ]; then rm -rf MetaGer_neu;fi
-
git clone "$path" MetaGer_neu
-
cd MetaGer_neu
-
composer install
-
scp metager@metager3.de:~/.env .
-
scp metager@metager3.de:~/sumas.xml config/
-
scp metager@metager3.de:~/sumasEn.xml config/
-
scp metager@metager3.de:~/blacklistUrl.txt config/
-
scp metager@metager3.de:~/blacklistDomains.txt config/
-
touch storage/logs/laravel.log
-
touch storage/logs/worker.log
-
chmod 777 config/sumas.xml config/sumasEn.xml database/metager.sqlite
-
chmod -R 777 storage
-
chmod -R 777 bootstrap/cache
-
if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi
-
cd ~/
-
rm -rf MetaGer
-
mv MetaGer_neu MetaGer
-
php ~/MetaGer/artisan queue:restart
-
php ~/MetaGer/artisan migrate --force
-
php ~/MetaGer/artisan up
update(metager3.de)
:
tags
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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