Turborepo in Railway
How can I avoid 2 of my services (frontend-app & backend-app) in one project from always building and deploying when I commit a change to my turbo repo in Github? I already use
turbo build --filter <service-name>
& npm run start --workspace=<service-name>
in the respective settings of the services but they still build and deploy at the same time when I commit something.11 Replies
Project ID:
f58a6a0a-fabc-4638-88a8-91f4ad9364fb
f58a6a0a-fabc-4638-88a8-91f4ad9364fb
ah, you want watch paths
https://docs.railway.app/deploy/builds#watch-paths
Thanks, but which should I watch the build files or the src files because if I commit they would still trigger my build and deploy commands right?
Start command not deploy command my mistake
you never want to commit your build folders, they should be in your .gitignore file, so watch the src folder
Just used watch paths for src files it actually worked thanks!
perfect! but you aren't committing your build folder, correct?
Yup they are in gitignore since I used nextjs and fastify clic
cli*
awesome, so all good?
Yes no problems
great!