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
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.
2 years ago
Its privated. I will give some screenshots.
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.
Attachments
2 years ago
Sorry but these screenshots don't help too much, would you be okay with adding me to your repo?
2 years ago
ok, Whats your Github?
2 years ago
Added
2 years ago
I have no clue how you have even gotten this to run on Railway in the first place to be honest.
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.
2 years ago
It says its using the latest version but it isn't.
2 years ago
kk
2 years ago
Thanks, I completely overlooked that.
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.
2 years ago
Yeah, for now I'll just add something like Having Trouble? Ctrl+Shift+R
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.
4 months ago
I have the same issue is there any solution