R

Railway

βœ‹ο½œhelp

Join Server

Deploy successful but old version is served

MDMarco D'Alia5/18/2023
Looks like the build complete as usual, but when opening the website we still see the old version.

We have a custom monorepo not linked to gihub, we deploy manually with reailway up. Tried many deploys but still the same.

Is there a way to disable caching or check if the latest version is being served?

Project id: d14e9b2b-807b-474a-af1c-59a6a4a680b9
MDMarco D'Alia5/18/2023
d14e9b2b-807b-474a-af1c-59a6a4a680b9
Bbrody5/18/2023
what tech stack?
MDMarco D'Alia5/18/2023
Nuxt.js 3.0, pnpm + turborepo monorepo. We have custom build command: pnpm run build and custom run command node apps/web/.output/server/index.mjs (since in the same repo there are multiple apps/)
Bbrody5/18/2023
you can try setting a NIXPACKS_NO_CACHE variable to 1 in your service settings
MDMarco D'Alia5/18/2023
thanks, trying
Bbrody5/18/2023
i dont think this pertains to code cacheing, but worth a shot
Bbrody5/18/2023
also, do you have the output build folder in the .gitignore file?
MDMarco D'Alia5/18/2023
it was working till this evening, we deploy usually through a gitlab pipeline. Just did some visual changes to some components, didn't change anything else and it start not showing the changes
MDMarco D'Alia5/18/2023
yes
Bbrody5/18/2023
okay then let me know if that variable works for you
MDMarco D'Alia5/18/2023
however, we have 2 .gitignore, maybe the issue? one at the root and one in the apps/web folder
MDMarco D'Alia5/18/2023
now I can see the new changes on prod πŸ‘
Bbrody5/18/2023
so all is good?
MDMarco D'Alia5/18/2023
yes!
Bbrody5/18/2023
thats awsome
MDMarco D'Alia5/18/2023
should I keep the nocache var or it was something temporary?
Bbrody5/18/2023
might be worth it to keep, if it happened once, it might happen again. its up to you to trade slightly slower build times for being guaranteed the latest code will be built and pushed
MDMarco D'Alia5/18/2023
yes, makes sense, thanks for your help!
Bbrody5/18/2023
no problem!