Replies: 13 comments 7 replies
-
You can't deploy directly a Bun.js application to (for ex.) Heroku, because these services use Node.js while you're using Bun.js. Theorically, they're all javascript, but some APIs like the fetch API (from Bun.js homepage: Bun.js it's on Beta and for now shouldn't be used for production but just for "fun", because something could not work properly... Anyway, there are two things you can do to really deploy a Bun.js application:
A good thing would be if these (free and not) would choose to offer also Bun.js but for now (also because there is only the Beta) no one does. I expect to see something comparable to Deno Deploy (but for Bun.js) in the future, but not in a recent time... |
Beta Was this translation helpful? Give feedback.
-
Alright! Thanks for your response. Can't wait to start using Bun.js for live projects tho! I love this project, it looks promising tho 😍 |
Beta Was this translation helpful? Give feedback.
-
Hopefully someone creates a build pack that can be used in Heroku and similar services |
Beta Was this translation helpful? Give feedback.
-
Is there a docker image for Bun that can be used to deploy it to something like render? |
Beta Was this translation helpful? Give feedback.
-
If you use a monorepo you can do something like this:
This way, you can run bun anywhere including Vercel, Heroku, etc. As far as I'm aware, it's working fine. |
Beta Was this translation helpful? Give feedback.
-
For heroku support, won't be able to use a buildpack. Think the approach is to build a container dyno and mount the bun docker container. Similar to how you would deploy on-premise n8n or retool. |
Beta Was this translation helpful? Give feedback.
-
you can use domcloud.co |
Beta Was this translation helpful? Give feedback.
-
which cloud can use to deploy nodejs with bun? thanks all. |
Beta Was this translation helpful? Give feedback.
-
I did deployed simple bun app on heroku. render made docker sample. here I used that. just add heroku.yml |
Beta Was this translation helpful? Give feedback.
-
If you are using yarn, |
Beta Was this translation helpful? Give feedback.
-
Is there an update on this? |
Beta Was this translation helpful? Give feedback.
-
We can deploy our Bun.js server on the Render hosting platform. This blog helps those who need to deploy a Bun.js app like a Node.js app: https://bun.sh/guides/ecosystem/render. |
Beta Was this translation helpful? Give feedback.
-
With Heroku you can use the Bun buildpack I made: https://github.com/jakeg/heroku-buildpack-bun I use it myself in production, and have been since April 2023. |
Beta Was this translation helpful? Give feedback.
-
I wanna start using Bun.js and drop Node.js depending of the application I wanna develop tho.
But I'm a little bit confused on how I'm gonna deploy Bun.js applications, I'm not sure if I can deploy Bun.js applications on Heroku, Vercel (for Next.js apps), Netlify (for React.js apps), or maybe my own shared hosting that supports Node.js apps.
I'm using a Windows PC tho but I have decide to install Linux for Bun.js sake, My PC is capable of Linux tho, I just don't see any use for it yet but here comes Bun.js!
Looking forward to hearing from you.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions