Error deploying Turborepo project with a fastify workspace

Hi @Brody, 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
No description
No description
No description
Solution:
railway is using pnpm 7 something, you should be able to set the pnpm version as shown here https://nixpacks.com/docs/providers/node#corepack
Jump to solution
18 Replies
Percy
Percy9mo ago
Project ID: ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
ibrahimyaacob
ibrahimyaacobOP9mo ago
ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
Brody
Brody9mo ago
please provide your build logs with that bookmarklet I gave you
ibrahimyaacob
ibrahimyaacobOP9mo ago
GitHub
GitHub - ibrahimyaacob92/turborepo-next-trpc
Contribute to ibrahimyaacob92/turborepo-next-trpc development by creating an account on GitHub.
ibrahimyaacob
ibrahimyaacobOP9mo ago
code is up to date
Brody
Brody9mo ago
you are missing a pnpm-lock.yaml file well scratch that, the build thinks you are missing a pnpm-lock.yaml file, but it's in your repo have you modified the root directory of your service? what version of pnpm do you use locally?
ibrahimyaacob
ibrahimyaacobOP9mo ago
no i have not modified the root directory. and my pnpm version is 8.9.2
Solution
Brody
Brody9mo ago
railway is using pnpm 7 something, you should be able to set the pnpm version as shown here https://nixpacks.com/docs/providers/node#corepack
ibrahimyaacob
ibrahimyaacobOP9mo ago
so i change it to my current version
Brody
Brody9mo ago
yep
ibrahimyaacob
ibrahimyaacobOP9mo 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/
No description
ibrahimyaacob
ibrahimyaacobOP9mo 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
No description
Brody
Brody9mo 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
ibrahimyaacob
ibrahimyaacobOP9mo ago
alhamdulillah it works @Brody
Brody
Brody9mo ago
awesome
ibrahimyaacob
ibrahimyaacobOP9mo ago
thank you for going thru this with me
Brody
Brody9mo ago
happy to help
Want results from more Discord servers?
Add your server