2022-05-09 01:45:33 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-05-20 20:50:53 +08:00
|
|
|
if [ ! -d ".git" ]; then
|
|
|
|
echo "Please deploy using Git."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if ! command -v git &> /dev/null; then
|
|
|
|
echo "Git is not installed! Please install git and try again."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
git config --global --add safe.directory $(pwd)
|
2021-08-01 22:56:11 +08:00
|
|
|
git fetch --all && git reset --hard origin/dev && git pull origin dev
|
2021-10-13 21:23:18 +08:00
|
|
|
git checkout dev
|
2021-08-10 12:37:37 +08:00
|
|
|
rm -rf composer.lock composer.phar
|
2021-10-13 21:00:21 +08:00
|
|
|
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
2021-08-01 22:56:11 +08:00
|
|
|
php composer.phar update -vvv
|
|
|
|
php artisan v2board:update
|
2022-05-09 01:45:33 +08:00
|
|
|
|
|
|
|
if [ -f "/etc/init.d/bt" ]; then
|
2022-05-10 14:16:04 +08:00
|
|
|
chown -R www $(pwd);
|
2022-05-09 01:45:33 +08:00
|
|
|
fi
|