Issue with Docker Build on Railway - Repository Changes Not Reflected

bryanvilladevPRO

a year ago

Description:

Hello,

I'm experiencing an issue with my project build on Railway. I have linked a GitHub repository that contains a Dockerfile, but it seems that changes made to the repository are not being reflected during the build process on Railway. This problem started occurring this afternoon.

The project is a PHP application, and everything was working fine until now. I have tested the Docker build locally and on an AWS Fargate instance, and it works perfectly in both environments. However, when building from the Dockerfile on Railway, it fails to apply the recent changes.

I have tried the following command during the local build, which works without any

Solved

3 Replies

a year ago

For clarity, does anything on Railway outright fail when you push some change? or is it simply that the changes you made are not reflected in the resulting website?


bryanvilladevPRO

a year ago

For clarity, does anything on Railway outright fail when you push some change? or is it simply that the changes you made are not reflected in the resulting website?

For clarity, the issue I was experiencing with Railway was that the changes I pushed were not being reflected on the resulting website. I resolved this by clearing the Git cache. Here’s how you can do it:git rm -r --cached . git add . git commit -m "Clear Git cache"After running these commands, I pushed the changes again, and the updates were properly reflected on the website.


Status changed to Solved railway[bot] 12 months ago


a year ago

Thank you for providing the solution.

From the solution you came to it is clear that this was not a platform issue, still something to be aware of and this will be useful to anyone who may see this thread, thanks again!