Railpack doesn't support Bun Catalogs?

salieflewisPRO

3 days 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

1 Replies

salieflewisPRO

3 days ago

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


3 days ago

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


salieflewisPRO

2 days ago

How would I configure bun to be used?


salieflewisPRO

2 days ago


2 days ago

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


2 days ago

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


salieflewisPRO

2 days ago

I do


2 days ago

Do you have any of these in addition to that?

1382076803950051300


salieflewisPRO

2 days ago

No


2 days ago

Can you share the repository?


salieflewisPRO

2 days ago

Its private, but I can share a skeleton


2 days ago

Screenshot of the root directory?


salieflewisPRO

2 days ago

1382077006262440000


2 days ago

🤨


salieflewisPRO

2 days ago

I'm saying


2 days ago

alright let's just do this the boring way


2 days ago

here's a dockerfile!

1382078120655585400


2 days ago

FROM oven/bun:latest

WORKDIR /app

COPY . .

RUN bun install

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

2 days ago

Have you used Dockerfile before?


salieflewisPRO

2 days ago

No not really


salieflewisPRO

2 days ago

I thought a docker image was getting created automatically


salieflewisPRO

2 days ago

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


2 days ago

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


2 days ago

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


2 days ago

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


2 days ago

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


2 days ago

(dockerfile best)


2 days ago

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


2 days ago

(Seems like a massive skill issue)


salieflewisPRO

2 days ago

What would the env be?


2 days ago

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

RAILPACK_INSTALL_CMD=bun install
RAILPACK_START_CMD=bun run start

2 days ago

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


salieflewisPRO

2 days ago

I have yes