From b652aebf3bf87d697fe89ac98dc6412da7d34327 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 16 Nov 2024 15:29:58 +0700 Subject: [PATCH] fix: change migrate command for dev --- setup/functions.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/functions.sh b/setup/functions.sh index e9fbd86..a61338d 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -103,8 +103,10 @@ build_admin() { composer $COMPOSER_COMMAND fi - echo ' ∟ Migrating database...' - php artisan migrate + if [ "$ENV" = "dev" ]; then + echo ' ∟ Migrating database...' + php artisan migrate + fi echo '' }