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
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
Its privated. I will give some screenshots.
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.
Attachments
a year ago
Sorry but these screenshots don't help too much, would you be okay with adding me to your repo?
a year ago
ok, Whats your Github?
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.
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.
a year ago
It says its using the latest version but it isn't.
a year ago
kk
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.
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.