2 months ago
When i try to deploy a service, it tells me "Deployment failed during the build process" it fails when building, and i used this code for others i hosted without issues, why is this an issue?
1 Replies
2 months ago
Can you check the logs?
2 months ago
Maybe Railpack was unable to parse your project structure and is having trouble building your app because it can't detect what technologies are being used
My confusion is that i had used this exact code for others i deployed, without issues.
2 months ago
Is it a monorepo? Try double checking Root Directories in your service settings
2 months ago

2 months ago
I don't have one set atm, you can also try following the 'deploying a monorepo' guide
2 months ago
What language are you using? looks as though it doesnt support or recognize it.
2 months ago
Hey @Shooting Star Which language are you using?
2 months ago
Oh I'd highly suggest a Dockerfile then!
How do i go about that, others i created worked once without stress, created about 50 using same code and this is frustrating
2 months ago
Let me go see if i have an old JS dockerfile somewhere
2 months ago
This is my typescript dockerfile back when I was using prisma:
FROM node:22-slim
WORKDIR /app
RUN apt-get update -y && apt-get install -y openssl
RUN npm install -g pnpm ts-node typescript
COPY package*.json ./
RUN pnpm install
COPY . .
CMD ["sh", "-c", "pnpm prisma db push && ts-node ./index.ts"]2 months ago
Something for js only would be as simple as:
FROM node:22-slim
WORKDIR /app
COPY package*.json ./
RUN npm install --prod
COPY . .
CMD ["node", "index.js"](this is off the top of my head and untested
2 months ago
If it's a monorepo try following this guide please 😉
2 months ago
Still looks like you're using the Railpacks instead of a Dockerfile 😁
2 months ago
I'd also refer to what Medim had sent on deploying a monorepo if that is applicable
2 months ago
Is this a monorepo? (Multiple projects in one repo) or just one project in a single repo
These are several projects i deployed using the exact same code from github, i wonder why this appears to be different

