build.sh 852 Bytes
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -e
# 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
Dominik Hebeler's avatar
Dominik Hebeler committed
26
php artisan migrate --force