Error creating build plan with Railpack
chambertiger
PROOP

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?

$10 Bounty

1 Replies

medim
MODERATOR

2 months ago

Can you check the logs?


medim
MODERATOR

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


chambertiger
PROOP

2 months ago

Yes, exactly it's having trouble building the app


chambertiger
PROOP

2 months ago

My confusion is that i had used this exact code for others i deployed, without issues.


medim
MODERATOR

2 months ago

Is it a monorepo? Try double checking Root Directories in your service settings


chambertiger
PROOP

2 months ago

Yes a mono repo


chambertiger
PROOP

2 months ago

How do i get to Root paths?


medim
MODERATOR

2 months ago

1419752331960127500


medim
MODERATOR

2 months ago

I don't have one set atm, you can also try following the 'deploying a monorepo' guide


chambertiger
PROOP

2 months ago

1419752556275695900


noahd
EMPLOYEE

2 months ago

What language are you using? looks as though it doesnt support or recognize it.


noahd
EMPLOYEE

2 months ago

Hey @Shooting Star Which language are you using?


chambertiger
PROOP

2 months ago

Javascript


chambertiger
PROOP

2 months ago

I've been using Js for others


chambertiger
PROOP

2 months ago

It's a bot I'm creating


noahd
EMPLOYEE

2 months ago

Oh I'd highly suggest a Dockerfile then!


chambertiger
PROOP

2 months ago

How do i go about that, others i created worked once without stress, created about 50 using same code and this is frustrating


noahd
EMPLOYEE

2 months ago

Let me go see if i have an old JS dockerfile somewhere


noahd
EMPLOYEE

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"]

noahd
EMPLOYEE

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


chambertiger
PROOP

2 months ago

Alright, will give a feedback shortly


chambertiger
PROOP

2 months ago

I'm stuck here


chambertiger
PROOP

2 months ago


medim
MODERATOR

2 months ago

If it's a monorepo try following this guide please 😉


noahd
EMPLOYEE

2 months ago

Still looks like you're using the Railpacks instead of a Dockerfile 😁


noahd
EMPLOYEE

2 months ago

I'd also refer to what Medim had sent on deploying a monorepo if that is applicable


chambertiger
PROOP

2 months ago

How to create a dockerfile pls?


noahd
EMPLOYEE

2 months ago

Is this a monorepo? (Multiple projects in one repo) or just one project in a single repo


chambertiger
PROOP

2 months ago

One project in a single repo


chambertiger
PROOP

2 months ago

These are several projects i deployed using the exact same code from github, i wonder why this appears to be different

1419808886256304000


chambertiger
PROOP

2 months ago

They're all working fine


Loading...