T
T
TSobolev2019-07-14 21:13:43
Apache HTTP Server
TSobolev, 2019-07-14 21:13:43

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

1 answer(s)
D
Denis, 2019-07-15
@notwrite

assets compile for passenger environment

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question