fix: switch to Railpack with proper pnpm and yarn configuration
This commit is contained in:
parent
e7c652460e
commit
79a439c634
3 changed files with 7 additions and 18 deletions
|
|
@ -1,11 +0,0 @@
|
||||||
[phases.setup]
|
|
||||||
nixPkgs = ["nodejs_20", "yarn"]
|
|
||||||
|
|
||||||
[phases.install]
|
|
||||||
cmds = ["pnpm i --frozen-lockfile"]
|
|
||||||
|
|
||||||
[phases.build]
|
|
||||||
cmds = ["./scripts/railway-build.sh"]
|
|
||||||
|
|
||||||
[start]
|
|
||||||
cmd = "pnpm run start"
|
|
||||||
7
railpack-plan.json
Normal file
7
railpack-plan.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"packages": {
|
||||||
|
"node": "20",
|
||||||
|
"pnpm": "9",
|
||||||
|
"yarn": "1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
[build]
|
|
||||||
builder = "NIXPACKS"
|
|
||||||
|
|
||||||
[deploy]
|
|
||||||
startCommand = "pnpm run start"
|
|
||||||
restartPolicyType = "ON_FAILURE"
|
|
||||||
restartPolicyMaxRetries = 10
|
|
||||||
Loading…
Reference in a new issue