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
Percy
Percy2y ago
Project ID: f58a6a0a-fabc-4638-88a8-91f4ad9364fb
Kapatid
KapatidOP2y ago
f58a6a0a-fabc-4638-88a8-91f4ad9364fb
Kapatid
KapatidOP2y ago
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
Brody
Brody2y ago
you never want to commit your build folders, they should be in your .gitignore file, so watch the src folder
Kapatid
KapatidOP2y ago
Just used watch paths for src files it actually worked thanks!
Brody
Brody2y ago
perfect! but you aren't committing your build folder, correct?
Kapatid
KapatidOP2y ago
Yup they are in gitignore since I used nextjs and fastify clic cli*
Brody
Brody2y ago
awesome, so all good?
Kapatid
KapatidOP2y ago
Yes no problems
Brody
Brody2y ago
great!
Want results from more Discord servers?
Add your server