final railway mysql setup

This commit is contained in:
Ryanpratama01 2026-03-16 04:06:54 +07:00
parent d2dd3dc51c
commit da8413046d
2 changed files with 3 additions and 4 deletions

View File

@ -27,4 +27,4 @@ RUN composer install --no-interaction --optimize-autoloader --no-dev
RUN npm install
RUN npm run build
CMD php artisan serve --host=0.0.0.0 --port=${PORT:-8080}
CMD php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=${PORT:-8080}

View File

@ -4,8 +4,7 @@
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite",
"postinstall": "php artisan migrate --force"
"dev": "vite"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.2",
@ -19,4 +18,4 @@
"tailwindcss": "^3.1.0",
"vite": "^7.0.7"
}
}
}