Railway isn't updating my depoyment?

splatplays
HOBBY

a year ago

Whenever I push to Github railway auto-deploys my website as normal, it says everything is fine yet it hasn't updated anything in the deployment? This continues every time and I now have a heavily out of date railway deployment. I have tried redeploying and restarting but this issue continues to persist.

18 Replies

a year ago

What kind of app is this?


splatplays
HOBBY

a year ago

A website. Node.js for the backend. It says its using my latest Github deployment yet its running a way older one.


a year ago

Are you able to share your repo?


splatplays
HOBBY

a year ago

Its privated. I will give some screenshots.


splatplays
HOBBY

a year ago

The one in my files is the one sinc-ed with Github. Railway states its using the latest version from my Github yet it is using un-patched older code from an older Github deployment.


a year ago

Sorry but these screenshots don't help too much, would you be okay with adding me to your repo?


splatplays
HOBBY

a year ago

ok, Whats your Github?


a year ago

brody192


splatplays
HOBBY

a year ago

Added


a year ago

I have no clue how you have even gotten this to run on Railway in the first place to be honest.


splatplays
HOBBY

a year ago

I have run over 20 projects on railway like this. Railway can auto-sinc with Github then build the project itself. The problem is how it is sinc-ing.


splatplays
HOBBY

a year ago

It says its using the latest version but it isn't.


a year ago

This is not a platform issue, this is a cache issue, hard refresh the page.


splatplays
HOBBY

a year ago

kk


splatplays
HOBBY

a year ago

Thanks, I completely overlooked that.


a year ago

Maybe look into using something like Vite and Caddy, as it stands you will keep having this issue with how you have done your project.


splatplays
HOBBY

a year ago

Yeah, for now I'll just add something like Having Trouble? Ctrl+Shift+R


a year ago

Something like this would be the optimal structure -

.
├── backend/
│   ├── package.json
│   ├── server.js
│   └── ...
└── frontend/
    ├── Nixpacks.toml
    ├── Caddyfile
    ├── package.json
    ├── ...
    └── src/
        ├── index.html
        └── ...

And then you would have two Railway services, one for the frontend and one for the backend.


Railway isn't updating my depoyment? - Railway Help Station