Rakesh Yadav
Rakesh Yadav

Reputation: 399

Rails production assets pre compile not working properly

When I run assets:precompile on my server i can clearly see that my assets are getting precompiled, also files are being written to filesystem properly, but when I visit my application from browser I am getting not found error because asset file names that are being referenced in HTML are older ones. I am absolutely clueless about how to debug this issue. Any kind of refrence/help will be highly appreciated

Upvotes: 0

Views: 104

Answers (1)

Uzbekjon
Uzbekjon

Reputation: 11823

Based on OP's comments, the app is in production environment and as such, it needed to be restarted to force the app to reevaluate the asset hashes.

Upvotes: 2

Related Questions