Railpack doesn't support Bun Catalogs?
salieflewis
PROOP

a year ago

Can't seem to get this build to not error out.

Here is what my package.json looks like

  "workspaces": {
    "packages": ["apps/*", "packages/*"],
    "catalog": {
      "drizzle-orm": "^0.44.2",
      "pg": "^8.16.0",
      "zod": "^3.25.56",
      "viem": "^2.31.0",
      "hono": "^4.7.11",
      "@types/pg": "^8.15.4"
    }
  },
$10 Bounty

35 Replies

salieflewis
PROOP

a year ago

fbc83639-6b3a-48e2-8aa0-9c016d399bc7


a year ago

it doesn't even look like bun is being used, I see npm


salieflewis
PROOP

a year ago

How would I configure bun to be used?


salieflewis
PROOP

a year ago


a year ago

Make sure you have bun.lockb or bun.lock committed to the repository.


a year ago

Make sure you have bun.lockb or bun.lock committed to the repository.


salieflewis
PROOP

a year ago

I do


a year ago

Do you have any of these in addition to that?

1382076803950051338


salieflewis
PROOP

a year ago

No


a year ago

Can you share the repository?


salieflewis
PROOP

a year ago

Its private, but I can share a skeleton


a year ago

Screenshot of the root directory?


salieflewis
PROOP

a year ago

1382077006262439947


a year ago

🤨


salieflewis
PROOP

a year ago

I'm saying


a year ago

alright let's just do this the boring way


a year ago

here's a dockerfile!

1382078120655585400


a year ago

FROM oven/bun:latest

WORKDIR /app

COPY . .

RUN bun install

CMD ["bun", "run", "start"]

a year ago

Have you used Dockerfile before?


salieflewis
PROOP

a year ago

No not really


salieflewis
PROOP

a year ago

I thought a docker image was getting created automatically


salieflewis
PROOP

a year ago

I'm not really interested in significantly changing how my builds are configured just to get this in


a year ago

Just create a file named Dockerfile (no file extension) and drop that content in


a year ago

Dockerfile is not railway specific and is the industry standard for sharing images


a year ago

You don't have to change anything other than adding the file


a year ago

also, if you really do not want a Dockerfile you can set custom environment variables to force Railway on using Bun.


a year ago

(dockerfile best)


a year ago

(Dockerfiles are hard to maintain depending on the project, including a monorepo)


a year ago

(Seems like a massive skill issue)


salieflewis
PROOP

a year ago

What would the env be?


a year ago

depends on how your project runs but it should probably be:

RAILPACK_INSTALL_CMD=bun install
RAILPACK_START_CMD=bun run start

a year ago

also, did you set any root directory on your Railway service? pretty weird that Railway did not auto detect your code


salieflewis
PROOP

a year ago

I have yes


a year ago

@salief Did you end up getting this solved?


salieflewis
PROOP

a year ago

I have yet to look into it again, but thanks for following up!


Welcome!

Sign in to your Railway account to join the conversation.

Loading...