Railway isn't updating my depoyment?
splatplays
HOBBYOP

2 years 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.

19 Replies

brody
EMPLOYEE

2 years ago

What kind of app is this?


splatplays
HOBBYOP

2 years ago

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


brody
EMPLOYEE

2 years ago

Are you able to share your repo?


splatplays
HOBBYOP

2 years ago

Its privated. I will give some screenshots.


splatplays
HOBBYOP

2 years 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.


brody
EMPLOYEE

2 years ago

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


splatplays
HOBBYOP

2 years ago

ok, Whats your Github?


brody
EMPLOYEE

2 years ago

brody192


splatplays
HOBBYOP

2 years ago

Added


brody
EMPLOYEE

2 years ago

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


splatplays
HOBBYOP

2 years 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
HOBBYOP

2 years ago

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


brody
EMPLOYEE

2 years ago

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


splatplays
HOBBYOP

2 years ago

kk


splatplays
HOBBYOP

2 years ago

Thanks, I completely overlooked that.


brody
EMPLOYEE

2 years 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
HOBBYOP

2 years ago

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


brody
EMPLOYEE

2 years 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.


omuratgultekin
HOBBY

3 months ago

I have the same issue is there any solution


Loading...