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
Solution:Jump to 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
18 Replies
Project ID:
ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
ccd1c691-fdc5-413c-b132-bd6dc13c8ab6
please provide your build logs with that bookmarklet I gave you
and here's the repo: https://github.com/ibrahimyaacob92/turborepo-next-trpc
GitHub
GitHub - ibrahimyaacob92/turborepo-next-trpc
Contribute to ibrahimyaacob92/turborepo-next-trpc development by creating an account on GitHub.
code is up to date
no i have not modified the root directory. and my pnpm version is 8.9.2
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
so i change it to my current version
yep
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/
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 placesdon'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
alhamdulillah it works @Brody
awesome
thank you for going thru this with me
happy to help