Error deploying Turborepo project with a fastify workspace

Anonymous
TRIAL

a year 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

0 Replies

Anonymous
TRIAL

a year ago

ccd1c691-fdc5-413c-b132-bd6dc13c8ab6


a year ago

please provide your build logs with that bookmarklet I gave you


Anonymous
TRIAL

a year ago


Anonymous
TRIAL

a year ago


Anonymous
TRIAL

a year ago

code is up to date


a year ago

you are missing a pnpm-lock.yaml file


a year ago

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


a year ago

have you modified the root directory of your service?


a year ago

what version of pnpm do you use locally?


Anonymous
TRIAL

a year ago

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


a year ago

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


Anonymous
TRIAL

a year ago

so i change it to my current version


a year ago

yep


Anonymous
TRIAL

a year 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
TRIAL

a year ago

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

1219055651129397200


a year 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
TRIAL

a year ago

alhamdulillah it works @Brody


a year ago

awesome


Anonymous
TRIAL

a year ago

thank you for going thru this with me


a year ago

happy to help