DivMode
DivMode
Explore posts from servers
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
Using a dockerfile to try and get this to work sounds interesting, ill take a look into it, appreciate your guys input
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
I guess your right, one thing I really liked about the monorepo approach was I could easily share the database schemas and types between frontend and backend.
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
Would love to get it working with turborepo on railway as it simplifies things for me but I guess support for bun isnt really there yet.
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
I was hoping to keep everything inside the monorepo. Im assuming that isnt possible at this time?
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
esm and commonjs compatability, was having some trouble with it in fastify, I just want to use bun with elysia as the backend on railway and nextjs app in the frontend with vercel
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
-----
> [stage-0 6/9] RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun npm install -g corepack && corepack enable:
0.340 /bin/bash: line 1: npm: command not found
-----

Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun npm install -g corepack && corepack enable
21 | RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun bun i --no-save
22 |
-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm install -g corepack && corepack enable" did not complete successfully: exit code: 127

Error: Docker build failed
-----
> [stage-0 6/9] RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun npm install -g corepack && corepack enable:
0.340 /bin/bash: line 1: npm: command not found
-----

Dockerfile:20
-------------------
18 | ENV NIXPACKS_PATH /app/node_modules/.bin:$NIXPACKS_PATH
19 | COPY . /app/.
20 | >>> RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun npm install -g corepack && corepack enable
21 | RUN --mount=type=cache,id=s/4392cf24-3b39-4f8b-a38b-2a47273c234b-/root/bun,target=/root/.bun bun i --no-save
22 |
-------------------

ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm install -g corepack && corepack enable" did not complete successfully: exit code: 127

Error: Docker build failed
Getting this after removing the lockfile but is there a way I can have bo the the pnpm lockfile and use bun?
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
it also trys to start the nextjs app but I do have in the nixfile
cmds = ["pnpm run start --filter server"]
cmds = ["pnpm run start --filter server"]
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
"server:start: sh: 1: bun: not found"
22 replies
RRailway
Created by DivMode on 9/18/2023 in #✋|help
Bun with turborepo support
I added the bun.lockb file to root and tried it inside the server but no luck with getting it to work
22 replies