Deployment issues in monorepo

5 months ago

I read the documentation for deploying the the isolated monorepo, but it is not working for me. In the same repo I have a contracts folder for the smart contracts, I don't know if this has any effect on it.

Added a photo of a cute capybara so this post doesn't die ignored.

0 Replies

5 months ago

the capybara is nice but the project id is what is really needed so the thread doesn't die


5 months ago

This is the project id: d8263cf9-4b3a-4b46-8e58-7fac42320517


5 months ago

sorry to send it so late


5 months ago

what kind of frontend


5 months ago

what framework


5 months ago

I am using react for the framework, and tailwind for the styling on the frontend


5 months ago

For the backend I am using ponder


5 months ago

do you use pnpm locally?


5 months ago

yes


5 months ago

what node version?


5 months ago

Node.js v18.17.0


5 months ago

have you looked at your build logs?


5 months ago

yessss, that's what confuses me a bit


5 months ago

yesterday I had a successful deployment for the backend and then i changed a couple of line in my github repo and today it doesnt work


5 months ago

when I look at the logs it says it was built successfully but it still failed, i am unsure as to why


5 months ago

i am unsure as to why
you can read your build logs to find out why, have you checked out your build logs yet?


5 months ago

=== Successfully Built! ===

Run:

docker run -it us-west1.registry.rlwy.net/91fca89a-8b4b-4bb2-8350-7ce69e903750:3adc2bd7-5a8e-4802-9130-552b03270db6

Build time: 50.74 seconds


5 months ago

this is the last log, this is why I am confused because it says it was successfully built but the deployment ended in a failure


5 months ago

oh i see


5 months ago

okay backend is fine, now your frontend


5 months ago

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1

Error: Docker build failed


5 months ago

please scroll further up


5 months ago

[stage-0 8/10] RUN --mount=type=cache,id=s/7ae2b593-e1e3-4d28-ab16-c0443c264b19-next/cache,target=/app/.next/cache --mount=type=cache,id=s/7ae2b593-e1e3-4d28-ab16-c0443c264b19-nodemodules/cache,target=/app/nodemodules/.cache pnpm run build:

25.65 https://nextjs.org/docs/messages/module-not-found

25.65

25.65 ./app/create-escrow/page.tsx

25.65 Module not found: Can't resolve 'react-datepicker'

25.65

25.65 https://nextjs.org/docs/messages/module-not-found

25.65

25.67

25.67 > Build failed because of webpack errors

25.68  ELIFECYCLE  Command failed with exit code 1.

Dockerfile:24

22 | # build phase

23 | COPY . /app/.

24 | >>> RUN --mount=type=cache,id=s/7ae2b593-e1e3-4d28-ab16-c0443c264b19-next/cache,target=/app/.next/cache --mount=type=cache,id=s/7ae2b593-e1e3-4d28-ab16-c0443c264b19-nodemodules/cache,target=/app/nodemodules/.cache pnpm run build

25 |

26 |

ERROR: failed to solve: process "/bin/bash -ol pipefail -c pnpm run build" did not complete successfully: exit code: 1

Error: Docker build failed


5 months ago

looks like you now see the error, go ahead and act on it


Deployment issues in monorepo - Railway Help Station