Error deploying Turborepo project with a fastify workspace
Anonymous
TRIALOP

2 years ago

Hi <@539512869780455445>, i'm using the a template repo that is similarly used by @ar and i did update the script in package.json and apparently i am getting this issue on the build step

20 Replies

Anonymous
TRIALOP

2 years ago

ccd1c691-fdc5-413c-b132-bd6dc13c8ab6


2 years ago

please provide your build logs with that bookmarklet I gave you


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago


Anonymous
TRIALOP

2 years ago

code is up to date


2 years ago

you are missing a pnpm-lock.yaml file


2 years ago

well scratch that, the build thinks you are missing a pnpm-lock.yaml file, but it's in your repo


2 years ago

have you modified the root directory of your service?


2 years ago

what version of pnpm do you use locally?


Anonymous
TRIALOP

2 years ago

no i have not modified the root directory. and my pnpm version is 8.9.2


2 years ago

railway is using pnpm 7 something, you should be able to set the pnpm version as shown here


Anonymous
TRIALOP

2 years ago

so i change it to my current version


2 years ago

yep


Anonymous
TRIALOP

2 years ago

okay the build & deployment works now! thank you @Brody . but now im getting new error, cant view the app

https://turborepo-next-trpc-production.up.railway.app/

1219055483789250600


Anonymous
TRIALOP

2 years ago

i checked the help section and found answer where i need to use env.PORT and env.HOST from railway, i swear the template already have this value in places

1219055651129397200


2 years ago

don't use a HOST variable, I'm not sure where you read that but it's incorrect.
you app only needs to listen on 0.0.0.0 and $PORT


Anonymous
TRIALOP

2 years ago

alhamdulillah it works @Brody


2 years ago

awesome


Anonymous
TRIALOP

2 years ago

thank you for going thru this with me


2 years ago

happy to help


Loading...