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
9047e3f7
Commit
9047e3f7
authored
May 02, 2019
by
Dominik Hebeler
Browse files
changed gitlab-ci
parent
d1564bfd
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9047e3f7
...
...
@@ -94,31 +94,4 @@ update(metager3.de):
-
which php
-
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 -P 63824 metager@metager3.de:~/.env .
-
scp -P 63824 metager@metager3.de:~/sumas.json config/
-
scp -P 63824 metager@metager3.de:~/sumasEn.json config/
-
scp -P 63824 metager@metager3.de:~/blacklistUrl.txt config/
-
scp -P 63824 metager@metager3.de:~/blacklistDomains.txt config/
-
touch storage/logs/laravel.log
-
touch storage/logs/worker.log
-
touch database/metager.sqlite
-
chmod 777 config/sumas.json config/sumas.json database/metager.sqlite
-
chmod -R 777 storage
-
chmod -R 777 bootstrap/cache
-
npm install
-
npm run production
-
php artisan migrate --force
-
php artisan requests:gather
-
if [ -f ~/MetaGer/artisan ]; then php ~/MetaGer/artisan down;fi
-
cd ~/
-
while [ -d ~/MetaGer ]; do rm -rf ~/MetaGer;done
-
mv MetaGer_neu MetaGer
-
sudo pkill --signal SIGHUP supervisord
-
php ~/MetaGer/artisan up
\ No newline at end of file
-
sh build.sh
\ No newline at end of file
build.sh
0 → 100644
View file @
9047e3f7
#!/bin/bash
# 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
-P
63824 metager@metager3.de:~/.env
.
scp
-P
63824 metager@metager3.de:~/sumas.json config/
scp
-P
63824 metager@metager3.de:~/sumasEn.json config/
scp
-P
63824 metager@metager3.de:~/blacklistUrl.txt config/
scp
-P
63824 metager@metager3.de:~/blacklistDomains.txt config/
scp
-P
63824 metager@metager3.de:~/adBlacklistUrl.txt config/
scp
-P
63824 metager@metager3.de:~/adBlacklistDomains.txt config/
touch
storage/logs/laravel.log
touch
storage/logs/worker.log
touch
database/metager.sqlite
chmod
777 config/sumas.json config/sumas.json database/metager.sqlite
chmod
-R
777 storage
chmod
-R
777 bootstrap/cache
npm
install
npm run production
php artisan migrate
--force
php artisan requests:gather
if
[
-f
~/MetaGer/artisan
]
;
then
php ~/MetaGer/artisan down
;
fi
cd
~/
while
[
-d
~/MetaGer
]
;
do
rm
-rf
~/MetaGer
;
done
mv
MetaGer_neu MetaGer
sudo
pkill
--signal
SIGHUP supervisord
php ~/MetaGer/artisan up
\ No newline at end of file
Write
Preview
Markdown
is supported
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