Skip to content

Commit

Permalink
fix: update php version
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Dec 14, 2024
1 parent 43d7bde commit ff5cc85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions setup/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
}
Expand Down

0 comments on commit ff5cc85

Please sign in to comment.