20 Replies
Project ID:
N/A
N/A
I think it's 1.0.11
1.0.11 is not the latest though
to use the latest bun version you have to specify the nix archive to use, add this to a nixpacks.toml file in your project.
reference: https://github.com/NixOS/nixpkgs/commit/5d99e55bbb7e90eef294e7796197ba3cb857cd9e
I thought they updated it: https://github.com/railwayapp/nixpacks/releases/tag/v1.19.0
new bun versions come out like every other day lol
as of writing this, the nixpacks.toml above will use bun 1.0.14
oh okay
Altight thank for your help!
ive updated my message above, when i wrote it the version was 1.0.13, ive updated the commit id to use bun 1.0.14
note that's still not the latest, if you always need the latest you'll want to move to a Dockerfile based build
Do you have an example of an Dockerfile?
Never used it before.
i do, but i make no promises that it will work out the gate for you
Thank you!
give this a read when you need to https://docs.docker.com/engine/reference/builder/
I will for sure, thanks again brody!
It works, gives me the latest version of bun!
wow that was easy, I put that disclaimer in because I thought it wouldn't work without some modifications
Haha it does work, just removed
COPY assets /app/assets
beacuse i dont have an assets folder. But yeah gives me v1.0.16
awesome
For future readers, you can also use the latest commit like so
New reply sent from Help Station thread:
@lasse I would just dockerize your application and use the bun image in there. This would streamline your deployment to Railway!You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Brody, am I understanding correctly that it is impossible to pin to a specific Bun version with Railway's nix implementation?I'd like to avoid the overhead of dockerizing if possible. All we need is to be able to specify bun version.You're seeing this because this thread has been automatically linked to the Help Station thread.
you can find the nixpacks comments here to be used as an archive - https://github.com/NixOS/nixpkgs/commits/master/pkgs/development/web/bun/default.nix
GitHub
History for pkgs/development/web/bun/default.nix - NixOS/nixpkgs
Nix Packages collection & NixOS. Contribute to NixOS/nixpkgs development by creating an account on GitHub.