R
Railway

✋|help

bun: command not found

Eeejit439/18/2023
Hello,

I'm trying to migrate my project to bun to make TS easier, and I'm when deploying, the logs get spammed with "/bin/bash: line 1: bun: command not found". I have a bun.lockb file, so it should auto-detect bun, no?

My start command is bun run start which runs bun --smol run src/main.ts

Please let me know what more I can provide!

Project ID: 70bac78f-22aa-44c7-b196-a54ada2d52c8
Bbrody1929/18/2023
do you have a left over lock file from npm/pnpm/yarn? if any of those are detected your build will still use node, if you're gonna switch to bun you gotta fully commit
Eeejit439/18/2023
nope, nothing else. is there anything else that could mess up that detection?
Eeejit439/18/2023
hrm, after removing the NIXPACKS_PKGS variable (that was set to python39 gcc), the build process throws "Nixpacks was unable to generate a build plan for this app.", and it lists the contents of src, not the root directory
is that why it is messing up somehow?
Bbrody1929/18/2023
for sure, do you have the root directory configured too?
Eeejit439/18/2023
the screenshot I showed is the entire directory, there is nothing aside from that
Bbrody1929/18/2023
screenshot doesn't load
show me your build logs please
Eeejit439/18/2023
sorry, the screenshot above, I'll send those shortly
Bbrody1929/18/2023
(it loaded now)
Eeejit439/18/2023
logs (I believe this is the correct attempt):
Eeejit439/18/2023
why- did it cut most of it out
Eeejit439/18/2023
tysm!
Eeejit439/18/2023
another possibility: what should "providers" be set to? bun isn't an option, only node is...
Eeejit439/18/2023
ahg that was it! @Brody so sorry to bother you, I resolved the issue by creating a nixpacks.toml file with providers = ["bun"]. I guess the detection might be buggy?
Bbrody1929/18/2023
detection worked fine, you just overwrote the providers with node in your settings
Eeejit439/18/2023
when removing that, nixpacks complained with this iirc
and there is no option for bun in the providers menu
anyway, no worries :)
Bbrody1929/18/2023
sounds good!

Looking for more? Join the community!

Recommended Posts
Metrics on Number of Web RequestsI just deployed a web API and would like to keep track of the number of requests made to the API. DoIs there a timeout on my api functions when deploying a nextjs app?I coudnt find anything about this on google or the docs, Thanks for helpingI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moI have problems with the database when I do a deploy.I have a mongo DB database that is connected to a node js, to connect to mongo I use the url that moError comunicate with internal servicecsI'm trying to make a post on a route that is in an internal service on railway = api-ecompleto.railwUnchanged repo fails to deploy on env var change.I had this exact setup running last night, and this morning when I changed an environment variable iIs it possible to host Unity project?I have a unity game development project which runs C# Since I already use railway for my other projCan't see organizations reposTitle.Please my images are not displaying after deploying on railway. I am new in web development.Please I am new to web development and first time deploying to railway. I have django drf backend wiISO 27001Hi this might be a dumb question but does Railway have the ISO 27001 certification or is that irreledeploying react with viteI've deployed a react app with vite, exposing network ip but I can't access it - says Application faOpenSSL error when using Bun + PrismaGetting an error when using Bun and prisma together. Prisma requires node to work, so start command Server isnt workingThe server suddenly stopped working. Could anyone explain what is going on?...How to deploy a project with multiple dockerfiles?Have project that has one `Dockerfile` for the backend service and another one `Dockerfile.celery` fWildcard DNS let user custom there domainI would like to know how to let's my users custom domain with CNAME to my domain DNS my DOMAIN CNABun with turborepo supportHey guys, Just switched over to bun from fastify but having some trouble setting it up properly to How does pro plan upgrade works for application? particularly Spring boot app...Hi all, I find it difficult to understand how pro plan upgrade works. I upgraded my Spring boot app Deploying Rust tries to copy binaries that don't exist.I'm not using my own nixpacks.toml, and railway is attempting to copy binaries that it doesn't need Cron skipingSo my Cron Schedule keeps skipping every time?Request to free up custom domainMy project id : 5df73bd5-7d04-40dd-9e57-97f1cdd89a60 Can u pls delete the given custom domain, it s