Bun
redicides
TRIALOP

2 years ago

Is railway compatible with bun? I'm looking to switch from nodejs to bun and want to make sure railway supports it.

0 Replies

redicides
TRIALOP

2 years ago

N/A


medim
MODERATOR

2 years ago

yes


medim
MODERATOR

2 years ago

but it doesn't use Bun's latest version, you can do what is mentioned here to use the latest version
https://discord.com/channels/713503345364697088/1240557730436087808/1240557730436087808


redicides
TRIALOP

2 years ago

Are there any guides on how to switch to bun? I don't know how to do it myself and it's low key confusing


redicides
TRIALOP

2 years ago

I can't find it under providers either



redicides
TRIALOP

2 years ago

I've already done the migration and it works well locally. However on railway it keeps telling me the bun command does not exist?


brody
EMPLOYEE

2 years ago

do you have a bun lock file? and only a bun lock file?


brody
EMPLOYEE

2 years ago

if you still have an npm/pnpm/yarn lock file then node is going to be used instead


redicides
TRIALOP

2 years ago

Yes


brody
EMPLOYEE

2 years ago

nixpacks or Dockerfile?


redicides
TRIALOP

2 years ago

Neither


redicides
TRIALOP

2 years ago

Not on this branch at least


redicides
TRIALOP

2 years ago

Actually, I might have deployed the wrong branch


redicides
TRIALOP

2 years ago

Give me a second to check


brody
EMPLOYEE

2 years ago

if you are having railway build the image, it has to be one or the other


redicides
TRIALOP

2 years ago

I'm running a branch where the npm files are still here, that's probably causing it. I'll switch over when I get home and see if it works


brody
EMPLOYEE

2 years ago

sounds good


redicides
TRIALOP

2 years ago

Alright


redicides
TRIALOP

2 years ago

I modified the branch and removed the package-lock.json file & added bun.lockb


redicides
TRIALOP

2 years ago

Let's see if it builds now


redicides
TRIALOP

2 years ago

Seems to be running fine


brody
EMPLOYEE

2 years ago

Great!


Loading...