R
Railway14mo ago
Danny

Bun install

Hi, im trying to deploy a bun app to railway, nixpacks seems to have picked it up, but is trying to run npm i when it should run bun i. How can i change this?
No description
6 Replies
Percy
Percy14mo ago
Project ID: N/A
Danny
Danny14mo ago
n/a
LaCrak27
LaCrak2714mo ago
rare nixpacks L
Greg Schier
Greg Schier14mo ago
Nixpacks doesn't support Bun 1.0 (yet) but we have a couple templates that use a Dockerfile like this one https://github.com/mattreid1/baojs-railway/blob/main/Dockerfile Here's the WIP Nixpacks PR if you want to follow the progress https://github.com/railwayapp/nixpacks/pull/962
Brody
Brody14mo ago
also nixpacks is setting the install command to npm ci because you still have a npm lock file in your repo and while nixpacks doesn't install bun 1.0 by default, you can get it to by specifying a nix packages archive https://discord.com/channels/713503345364697088/1150193137944363028/1150193587431149679
Danny
Danny14mo ago
got it to work with just removing the lockfile, the bun version seems to work fine for my app not going to production for a while so shouldnt matter rn
Want results from more Discord servers?
Add your server