Add nixpacks.toml with PHP 8.4 for Railway deployment

This commit is contained in:
babelbes0487 2026-06-19 16:37:52 +07:00
parent 5abd8184a6
commit 3c2b3cc9f7
1 changed files with 26 additions and 3 deletions

View File

@ -1,11 +1,34 @@
[phases.setup] [phases.setup]
nixPkgs = ["php82", "php82Extensions.pdo", "php82Extensions.pdo_pgsql", "php82Extensions.mbstring", "php82Extensions.xml", "php82Extensions.curl", "php82Extensions.zip", "php82Extensions.gd", "nodejs_20", "nodePackages.npm"] nixPkgs = [
"php84",
"php84Extensions.pdo",
"php84Extensions.pdo_pgsql",
"php84Extensions.mbstring",
"php84Extensions.xml",
"php84Extensions.curl",
"php84Extensions.zip",
"php84Extensions.gd",
"php84Extensions.tokenizer",
"php84Extensions.fileinfo",
"php84Extensions.openssl",
"nodejs_22",
"nodePackages.npm",
"composer"
]
[phases.install] [phases.install]
cmds = ["composer install --no-dev --optimize-autoloader", "npm install"] cmds = [
"composer install --no-dev --optimize-autoloader --no-interaction",
"npm ci"
]
[phases.build] [phases.build]
cmds = ["npm run build", "php artisan config:cache", "php artisan route:cache", "php artisan view:cache"] cmds = [
"npm run build",
"php artisan config:cache",
"php artisan route:cache",
"php artisan view:cache"
]
[start] [start]
cmd = "php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=$PORT" cmd = "php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=$PORT"