8 months 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"
}
},35 Replies
8 months ago
it doesn't even look like bun is being used, I see npm
8 months ago
Make sure you have bun.lockb or bun.lock committed to the repository.
8 months ago
Do you have any of these in addition to that?

8 months ago
Can you share the repository?
8 months ago
Screenshot of the root directory?
8 months ago
🤨
8 months ago
alright let's just do this the boring way
8 months ago
here's a dockerfile!
8 months ago
FROM oven/bun:latest
WORKDIR /app
COPY . .
RUN bun install
CMD ["bun", "run", "start"]8 months ago
Have you used Dockerfile before?
I'm not really interested in significantly changing how my builds are configured just to get this in
8 months ago
Just create a file named Dockerfile (no file extension) and drop that content in
8 months ago
Dockerfile is not railway specific and is the industry standard for sharing images
8 months ago
You don't have to change anything other than adding the file
8 months ago
also, if you really do not want a Dockerfile you can set custom environment variables to force Railway on using Bun.
8 months ago
(dockerfile best)
8 months ago
(Dockerfiles are hard to maintain depending on the project, including a monorepo)
8 months ago
(Seems like a massive skill issue)
8 months ago
depends on how your project runs but it should probably be:
RAILPACK_INSTALL_CMD=bun install
RAILPACK_START_CMD=bun run start8 months ago
also, did you set any root directory on your Railway service? pretty weird that Railway did not auto detect your code
8 months ago
@salief Did you end up getting this solved?
