4 days ago
I have hosted my backend, frontend, and database on Railway. Recently, I made some updates to my codebase and pushed the changes to GitHub, but after redeploying the services, the updates are not being reflected on the server.
It seems like Railway is still using a cached version of the application instead of rebuilding from the latest GitHub commit.
I searched online and found that many people recommend using the “Redeploy without cache” option from the deployment menu (three dots). However, that option does not appear in my Railway dashboard.
I have tried to Redeploy the service multiple times, I confirmed that the latest code is pushed to GitHub, still the new updates are not being reflected in the server.
I would really appreciate any help on how can I force Railway to rebuild the application using the latest GitHub code?
1 Replies
4 days ago
The "Redeploy" action rebuilds using the exact same code from that deployment, not the latest commit from GitHub. To deploy your newest code, open the Command Palette (CMD + K or Ctrl + K) and select "Deploy Latest Commit", which will pull and build from the latest commit on your connected branch. You can also verify in your service settings that autodeploy is enabled and that the correct GitHub branch is connected, so future pushes trigger deployments automatically. To force a build without cache, you can set the environment variable NO_CACHE=1 on the service.
Status changed to Awaiting User Response Railway • 4 days ago
Status changed to Solved sondosdeeb22 • 4 days ago
