v2board/update_dev.sh
2022-05-10 13:52:52 +08:00

14 lines
375 B
Bash
Executable File

#!/bin/bash
git fetch --all && git reset --hard origin/dev && git pull origin dev
git checkout dev
rm -rf composer.lock composer.phar
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
php composer.phar update -vvv
php artisan v2board:update
php artisan config:cache
if [ -f "/etc/init.d/bt" ]; then
chmod -R www $(pwd);
fi