From ff5cc85d7396f61dce50f30c58dce1d226a1dc9d Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 14 Dec 2024 23:11:42 +0700 Subject: [PATCH] fix: update php version --- setup/functions.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup/functions.sh b/setup/functions.sh index 5997707..caedf21 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -98,20 +98,20 @@ build_admin() { echo ' ∟ .env file missing, copying from .env.example...' cp "$BLOG_ADMIN_DIR/.env.production" "$BLOG_ADMIN_DIR/.env" composer $COMPOSER_COMMAND - php artisan key:generate + /usr/bin/php8.3 artisan key:generate else composer $COMPOSER_COMMAND fi if [ "$ENV" = "dev" ]; then echo ' ∟ Migrating database...' - php artisan migrate + /usr/bin/php8.3 artisan migrate fi - php artisan config:cache - php artisan route:cache - php artisan optimize:clear - php artisan migrate --force + /usr/bin/php8.3 artisan config:cache + /usr/bin/php8.3 artisan route:cache + /usr/bin/php8.3 artisan optimize:clear + /usr/bin/php8.3 artisan migrate --force echo '' }