From 75dbc990e429c9e3c27878d2f17e5cf887c57758 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sun, 26 Dec 2021 01:30:07 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E5=AE=89=E8=A3=85composer=20install?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E6=97=B6=E5=B0=9D=E8=AF=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E6=BA=90=E5=86=8D=E8=AF=95=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd b/cmd index fcc3f079..f67599f5 100755 --- a/cmd +++ b/cmd @@ -219,6 +219,10 @@ if [ $# -gt 0 ]; then docker-compose up -d docker-compose restart php run_exec php "composer install" + if [ ! -f "${cur_path}/vendor/autoload.php" ]; then + run_exec php "composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/" + run_exec php "composer install" + fi [ -z "$(env_get APP_KEY)" ] && run_exec php "php artisan key:generate" run_exec php "php artisan migrate --seed" run_exec php "php bin/run --mode=prod"