mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
update: shell
This commit is contained in:
parent
e72d28e2b3
commit
d74ab728fe
@ -94,7 +94,7 @@ class ThemeController extends Controller
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
Artisan::call('config:cache');
|
Artisan::call('config:cache');
|
||||||
sleep(2);
|
// sleep(2);
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
abort(500, '保存失败');
|
abort(500, '保存失败');
|
||||||
}
|
}
|
||||||
|
6
init.sh
6
init.sh
@ -1,4 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
rm -rf composer.phar
|
rm -rf composer.phar
|
||||||
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
||||||
php composer.phar install -vvv
|
php composer.phar install -vvv
|
||||||
php artisan v2board:install
|
php artisan v2board:install
|
||||||
|
|
||||||
|
if [ -f "/etc/init.d/bt" ]; then
|
||||||
|
chmod -R www $(PWD);
|
||||||
|
fi
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
git fetch --all && git reset --hard origin/master && git pull origin master
|
git fetch --all && git reset --hard origin/master && git pull origin master
|
||||||
rm -rf composer.lock composer.phar
|
rm -rf composer.lock composer.phar
|
||||||
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
wget https://github.com/composer/composer/releases/latest/download/composer.phar -O composer.phar
|
||||||
php composer.phar update -vvv
|
php composer.phar update -vvv
|
||||||
php artisan v2board:update
|
php artisan v2board:update
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
|
|
||||||
|
if [ -f "/etc/init.d/bt" ]; then
|
||||||
|
chmod -R www $(PWD);
|
||||||
|
fi
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
git fetch --all && git reset --hard origin/dev && git pull origin dev
|
git fetch --all && git reset --hard origin/dev && git pull origin dev
|
||||||
git checkout dev
|
git checkout dev
|
||||||
rm -rf composer.lock composer.phar
|
rm -rf composer.lock composer.phar
|
||||||
@ -5,3 +7,7 @@ wget https://github.com/composer/composer/releases/latest/download/composer.phar
|
|||||||
php composer.phar update -vvv
|
php composer.phar update -vvv
|
||||||
php artisan v2board:update
|
php artisan v2board:update
|
||||||
php artisan config:cache
|
php artisan config:cache
|
||||||
|
|
||||||
|
if [ -f "/etc/init.d/bt" ]; then
|
||||||
|
chmod -R www $(PWD);
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user