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

a year ago
Can you share the repository?
a year ago
Screenshot of the root directory?
a year ago
🤨
a year ago
alright let's just do this the boring way
a year ago
here's a dockerfile!
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?
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)
a year ago
depends on how your project runs but it should probably be:
RAILPACK_INSTALL_CMD=bun install
RAILPACK_START_CMD=bun run starta year ago
also, did you set any root directory on your Railway service? pretty weird that Railway did not auto detect your code
a year ago
@salief Did you end up getting this solved?
