R

Railway

βœ‹ο½œhelp

Join Server

Trying to deploy Next js 13 app and its failing?

A|JTYONArcus | Join the Yield Ones NFT5/18/2023
Hey guys, whats the process to deploy a simple Next js app? Version 13.

Right now its failing. Is there specific steps? I'm just trying to deploy it from the github repo.
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
c8ae4fa9-ea5e-4a2a-b926-127053262298
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
"ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 1

Error: Docker build failed"
Bbrody5/18/2023
can you please provide full build logs?
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
Im working trough it rn
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
I think tis because Im uploading pages that I was just using to keep some code dev, is there a way to signal railway to ignore stuff?
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
like an ignore file?
Bbrody5/18/2023
a .gitignore file
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
hmmm, ok, I wanted to save those pages on my repo, just not on the production, I guess I need two different repos?

also, how do I solve this error:

Dockerfile:25
-------------------
23 | # build phase
24 | COPY . /app/.
25 | >>> RUN --mount=type=cache,id=s/6938deab-95c5-4dea-a72a-638ab065b303-next/cache,target=/app/.next/cache --mount=type=cache,id=s/6938deab-95c5-4dea-a72a-638ab065b303-node_modules/cache,target=/app/node_modules/.cache yarn run build
26 |
27 |
-------------------
ERROR: failed to solve: process "/bin/bash -ol pipefail -c yarn run build" did not complete successfully: exit code: 1

Error: Docker build failed
Bbrody5/18/2023
that does not tell me what the error is, it only states that there was an error. please provide full build logs
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
ok I was able to publish
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
Im unable to expose the server
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
says not found
Bbrody5/18/2023
works now
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
AWESOME
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
thanks!
Bbrody5/18/2023
little tip, setup a health check endpoint so that railway knows when your app has started and can switch over to new deploys with zero downtime
https://docs.railway.app/deploy/healthchecks
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
ok, let me learn about this, thank you Brody!
Bbrody5/18/2023
no problem!
Bbrody5/18/2023
cool website design btw!
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
thanks! πŸ˜› I did it haha
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
Im having some problems
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
I can see the site just fine
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
but my team does not, seems its not fetching the NFT metadata nor the thirdweb stuff
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
I cant replicate the error on my end which is super weird
Bbrody5/18/2023
are you on the teams plan?
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
no
A|JTYONArcus | Join the Yield Ones NFT5/18/2023
but so far only one person has this problem, he is in America, my other 2 team mates see the website like I do, they are in Europe and South America
Bbrody5/18/2023
can i have specific error messages/screenshots? that is far to vague for me to help you with