fix: use Procfile for Railway deployment

This commit is contained in:
Adamalfantino 2026-05-22 22:07:22 +07:00
parent 83228d7647
commit 754aebfaec
2 changed files with 1 additions and 15 deletions

1
Procfile Normal file
View File

@ -0,0 +1 @@
web: php artisan migrate --force && php artisan db:seed --force && php artisan serve --host=0.0.0.0 --port=$PORT

View File

@ -1,15 +0,0 @@
[phases.setup]
nixPkgs = ["php82", "php82Extensions.pdo", "php82Extensions.pdo_mysql", "php82Extensions.mbstring", "php82Extensions.xml", "php82Extensions.curl", "php82Extensions.zip", "php82Extensions.gd", "php82Extensions.tokenizer", "php82Extensions.bcmath", "php82Packages.composer"]
[phases.install]
cmds = ["composer install --no-dev --optimize-autoloader"]
[phases.build]
cmds = [
"php artisan config:cache",
"php artisan route:cache",
"php artisan view:cache"
]
[start]
cmd = "php artisan migrate --force && php artisan db:seed --force && php -S 0.0.0.0:$PORT -t public"