-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Failed To Deploy Bun App #2990
Comments
I've cloned your repo and deployed it on my instance, it works fine for me. Did you modify the install command? Normally, Nixpacks should just run The Elysia documentation also provides info about the scripts normally included in the |
@louisescher I will try |
I try to update my |
Can you try and change the install command to |
@louisescher Yeah I tried it and failed |
Is you run start command in your local machine does it work? IF you want to use the built one it's usually in dist, or depending on your tsconfig. this is not a coolify issue. |
All install, run, build commad working fine on my machine, Is it nixpacks related bug? |
I tried to re install coolify, Stil didnt solve the issue |
I ended up using Dockerfile instead |
I reproduce this on a fresh coolify install with a vanilla create-t3-app project. |
any updates? |
i got bun install via nixpaxcks Jared mentioned on Ubuntu if build-essential is missing you can have issues see this tweet : [phases.setup]
nixPkgs = ['bun']
aptPkgs = ['build-essential']
[phases.install]
cmds = ['bun install --ignore-scripts']
[phases.build]
cmds = ['bun run build']
[start]
cmd = 'bun run build/index.js'
|
That toml snippet I shared just needs to be saved as nixpacks.toml at the root of your project and in your coolify configuration(ui) make sure Nixpacks is set (it's usually the default) also the build and run scripts would need to be yours for elysia commands |
Description
Error when deploy Bun App (Elysia)
Minimal Reproduction (if possible, example repository)
Deploy Bare minium Bun app with Elysia Framework with Nixpack: https://github.com/iyansr/test-elysia
The error log says
ERROR: failed to solve: process "/bin/bash -ol pipefail -c bun i --no-save" did not complete successfully: exit code: 132
Exception or Error
Version
v4.0.0-beta.319
Cloud?
The text was updated successfully, but these errors were encountered: