FEATURE: improve little bit update script
This commit is contained in:
+15
-4
@@ -31,6 +31,14 @@ if [ ! $? -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
git checkout $BRANCH
|
git checkout $BRANCH
|
||||||
|
|
||||||
|
if [ ! $? -eq 0 ]; then
|
||||||
|
echo " *****************************************"
|
||||||
|
echo " * ERROR: cannot do git checkout $BRANCH *"
|
||||||
|
echo " *****************************************"
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
git pull origin $BRANCH
|
git pull origin $BRANCH
|
||||||
|
|
||||||
if [ ! $? -eq 0 ]; then
|
if [ ! $? -eq 0 ]; then
|
||||||
@@ -40,14 +48,18 @@ if [ ! $? -eq 0 ]; then
|
|||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
set -e
|
||||||
composer install --no-dev
|
composer install --no-dev
|
||||||
|
npm install
|
||||||
|
bower install
|
||||||
|
|
||||||
php artisan migrate --force -n
|
php artisan migrate --force -n
|
||||||
php artisan module:migrate --force -n
|
php artisan module:migrate --force -n
|
||||||
php artisan vendor:publish --tag=module-views --force -n
|
|
||||||
php artisan vendor:publish --tag=public-assets --force -n
|
|
||||||
php artisan vendor:publish
|
php artisan vendor:publish
|
||||||
|
php artisan template:publish
|
||||||
|
php artisan clear-compiled
|
||||||
php artisan view:clear
|
php artisan view:clear
|
||||||
|
php artisan optimize
|
||||||
|
|
||||||
# this part need running as root
|
# this part need running as root
|
||||||
sudo chmod 0777 bootstrap/cache -R
|
sudo chmod 0777 bootstrap/cache -R
|
||||||
@@ -59,8 +71,7 @@ sudo chmod 0777 modules/*/module.json
|
|||||||
sudo chmod 0777 modules/*/*/module.json
|
sudo chmod 0777 modules/*/*/module.json
|
||||||
sudo chmod +x scripts/*
|
sudo chmod +x scripts/*
|
||||||
|
|
||||||
npm install
|
|
||||||
|
|
||||||
gulp --production
|
gulp --production
|
||||||
|
|
||||||
php artisan up
|
php artisan up
|
||||||
|
set +e
|
||||||
Reference in New Issue
Block a user