代码拉取完成,页面将自动刷新
#!/bin/sh
NO_COLOR="\033[0m"
GREEN="\033[38;5;010m"
ORANGE="\033[38;5;214m"
echo "\n${GREEN}post merge hook start${NO_COLOR}\n"
# we check if vendor/bin/phpunit is present.
# If yes this means we are in dev mode.
PHPUNIT="vendor/bin/phpunit"
if [ -f ".NO_AUTO_COMPOSER_MIGRATE" ]; then
echo "\n${ORANGE}composer and database migration skipped as per requested.${NO_COLOR}\n"
else
if [ -x "$PHPUNIT" ]; then
echo "\n${ORANGE}Dev mode detected${NO_COLOR}\n"
echo "composer install --no-suggest"
composer install --no-suggest
else
echo "\n${ORANGE}--no-dev mode detected${NO_COLOR}\n"
echo "composer install --no-dev --prefer-dist --no-suggest"
composer install --no-dev --prefer-dist --no-suggest
fi
if [ -f ".env" ]; then
echo "php artisan migrate --force"
php artisan migrate --force
fi
fi
echo "\n${GREEN}post merge hook finish${NO_COLOR}\n"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。