deploy bun 1.0 project
does anyone know if and how thats possible on railway currently?
48 Replies
Project ID:
N/A
try adding this as a nixpacks.toml file to your project
reference https://github.com/NixOS/nixpkgs/commit/c054b2a07bce2be3b85fed85f45aea6a4b97f5cc
i will try that
thank you
it failed 😦
logs please
can i provide a Project ID afterwards Maybe that would be easier for you?
please enclose the logs in triple backticks
done
full build logs please
ok for some reason i cant copy everything
that will do
looks like that error output gives you a pretty good idea of how to fix this build issue?
im not sure what way would work for railway
so what kind of app is this?
a svelte-kit full stack app
do you develop with bun 1.0 locally?
yep
vite + sveltekit?
yes
send me the scripts section of your package.json
can you run
bun build
locally without issue?oh no it throws the same
missing entrypoints
well if it doesnt work locally its unlikely to work on railway, get it working locally first, let me know when you have that done 🙂
alright
oh nvm it actually works just the command is bun run build and not bun build
cool, also you seem to be missing a start command?
uhm yeah
youre gonna need one lol
good idea
i think it works now
what was the start command you are using now
"start": "node ./build/index.js"
and then bun run start
bruh
i think thats how you do it with svelte kit right
you dont see what you did wrong?
uhm no
what did i do wrong
it works i think?
"start": "node ./build/index.js"
node😂
well
thought you wanted to use bun
i mean
yeah
XD
see what you did wrong now? lol
yes
thanks
lmao
im too tired
so tired your eyes are fully closed
no i just copy pasted it from another project forgetting that i use bun now instead of node 😂
thanks for the help @Brody
well does it work with bun in place of node?
yes
awsome
do we need this?
to use bun 1.0, yes, otherwise some bun 0.4x version will be used
is this automatically using the latest version for example 1.0.2 now ?
no, that fixes it to 1.0
add this (or update the archive hash) in your nixpacks.toml to fix the bun version to 1.0.2
referance: https://github.com/NixOS/nixpkgs/commit/d68b3b0c914aea10eee7cf2e59ef44e39bc221c9