New: Launch Bun applications

Requires flyctl version 0.1.54. See details at: Fly.io ❤️ Bun · Fly

Feel free to leave any questions or comments here.

5 Likes

that’s great! I’d love to use it with Sveltekit! I wonder if there’ll be a Dockerfile or it ain’t needed?

It doesn’t look like the pieces are all there… yet. But it is only a matter of time:

1 Like

trying out fly for the first time after seeing this announcement

I have a very basic bun project and the fly cli installed

when I run fly launch I get this:

me@ME:~/code/bun-playground$ fly launch
Creating app in /home/whatplan/code/bun-playground
Scanning source code
Detected a Bun app
? Choose an app name (leave blank to generate one):
automatically selected personal organization:
Some regions require a paid plan (bom, fra, maa).
See Plan Pricing · Fly to set up a plan.

? Choose a region for deployment: [Use arrows to move, type to filter]
Amsterdam, Netherlands (ams)
Stockholm, Sweden (arn)
Atlanta, Georgia (US) (atl)
? Choose a region for deployment: Boston, Massachusetts (US) (bos)
App will use ‘bos’ region as primary

Created app ‘snowy-violet-1200’ in organization ‘personal’
Admin URL: Sign In · Fly
Hostname: snowy-violet-1200.fly.dev
Error: failure finding bunx executable in PATH

in my dashboard the app is “pending” with no logs

I’m thinking this is a me problem because the announcement post made it sound very simple, just fly launch and everything works

Any help is appreciated thanks

What version of bun are you running? It appears that bunx was first included in bun with version 0.4: Bun v0.4 | Bun Blog

0.6.14
fresh installed bun today
hm have bun but don’t seem to have bunx for some reason
ok so bun x works but bunx doesnt

Thanks!

I’m testing a fix: fall back to "bun x" when "bunx" is not found by rubys · Pull Request #2573 · superfly/flyctl · GitHub .

reinstalled bun again today and bunx was installed this time, very strange
anyways thanks for the help, got my app deployed and working great