Liam
Liam
Explore posts from servers
RRailway
Created by Liam on 5/8/2024 in #✋|help
Nixpacks Ignoring Engines.Node
0d20c18a-47d6-45ee-be99-56666d3838e3
5 replies
RRailway
Created by Liam on 2/19/2024 in #✋|help
Install Newer Version of Node JS in Dockerfile
My project exists in a mono repo and has no package-lock defined in the specific app. Going to fix this at some point since I fully understand its bad practice, but npm ci requires that the packge-lock exists. Just need to do some fiddeling with my monorepo to get it to work properly.
11 replies
RRailway
Created by Liam on 2/19/2024 in #✋|help
Install Newer Version of Node JS in Dockerfile
That worked! I had to change npm ci to npm i but seems to be working now. Thanks!
11 replies
RRailway
Created by Liam on 2/19/2024 in #✋|help
Install Newer Version of Node JS in Dockerfile
Oops sorry forgot the project ID, looking to install v20.11.1 (LTS)
11 replies
RRailway
Created by Liam on 2/19/2024 in #✋|help
Install Newer Version of Node JS in Dockerfile
6cf9a94a-c057-4df7-8047-200d7bf6226b
11 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Thank you!
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Setting the bun version worked!
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
No description
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
sorry my bad had not copied the most recent version of the nixpacks toml
[phases.setup]
nixPkgs = ['...', 'bun']

[phases.build]
cmds = ['pnpm install --filter db', 'pnpm install --filter config', 'pnpm install --filter bot']

[start]
cmd = 'bun -v && pwd && pnpm --filter=bot run start'
[phases.setup]
nixPkgs = ['...', 'bun']

[phases.build]
cmds = ['pnpm install --filter db', 'pnpm install --filter config', 'pnpm install --filter bot']

[start]
cmd = 'bun -v && pwd && pnpm --filter=bot run start'
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
No description
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
No description
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
running pnpm run start --filter bot from the root of the monorepo on my local machine leads to the bot starting correctly
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
I do it via this nixpacks toml:
[phases.setup]
nixPkgs = ['...', 'bun']

[phases.build]
cmds = ['pnpm install --filter db', 'pnpm install --filter config', 'pnpm install --filter bot']

[start]
cmd = 'pnpm run start --filter bot'
[phases.setup]
nixPkgs = ['...', 'bun']

[phases.build]
cmds = ['pnpm install --filter db', 'pnpm install --filter config', 'pnpm install --filter bot']

[start]
cmd = 'pnpm run start --filter bot'
with the bot app package.json having the following scripts:
"scripts": {
"dev": "bun run --env-file=../../.env --hot bot.ts",
"start": "bun run --env-file=../../.env ./bot.ts",
"deploy:dev": "bun run --env-file=../../.env --dev deploy-commands.ts",
"deploy:prod": "bun run --env-file=../../.env --prod deploy-commands.ts"
}
"scripts": {
"dev": "bun run --env-file=../../.env --hot bot.ts",
"start": "bun run --env-file=../../.env ./bot.ts",
"deploy:dev": "bun run --env-file=../../.env --dev deploy-commands.ts",
"deploy:prod": "bun run --env-file=../../.env --prod deploy-commands.ts"
}
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Almost seems like bun run is not getting any arguments? That's really odd though as it definently is getting some.
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Only think I have found is this which seems like the behaviour changed at some point https://github.com/oven-sh/bun/discussions/7585
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Yep, only difference between my local environment and the railway one as far as I can tell is the version of bun (1.0.11 on railway vs 1.0.23 on local)
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Sadly I still haven't, have tried a few things but to no avail :/
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
Sort of a bun replacement for libraries like dotenv. That part is only used in dev, and it does not lead to any errors if the file does not exist and does not overwrite existing enviroment variables.
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
No description
63 replies
RRailway
Created by Liam on 2/13/2024 in #✋|help
Running a Bun + pnpm Application on Railway
No description
63 replies