Answer the question
In order to leave comments, you need to log in
How to fix loading assets in a Ruby on Rails application?
Hello. There is a VPS on ubuntu, apache2, Ruby on Rails and passenger.
After manipulations with passenger, styles and scripts (assets) stopped loading.
When running on port 80 (passenger) in the js console, I see:
------------
http://123.456.123.456/assets/application.self-00a...
Failed to load resource: the server responded with a status of 502 (Bad Gateway)
------------
And so 234 times with all resources.
At the same time, when launched through puma, everything is loaded and displayed correctly.
And on heroku, where the deployment eventually goes, everything is also ok.
Reinstalling passenger, restarting apache, of course, did not help.
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question