Home ruby-on-rails Problem with Production Version Applications

Problem with Production Version Applications

Author

Date

Category

Good day!
My problem is that in Production -rubs ROR applications there are some problems with the display. That’s what’s there – http://foto-kladov.ru/ .

The impression as if some resources / assets were not found. As far as I know, the product version differs from the start of the same Development or test version. Need, for example, compile resources. So, in fact, I would really like to know what the essence of my problem, dear Rubists? I would be very grateful to any help.


Answer 1, Authority 100%

Rails App Not Serving Assets in Production Environment

Again: I am not a chop, so be prepared to roll back the changes, but:

Rails_env = Production Bundle Exec Rake Assets: Precompile

should simply transfer the statics (it does not roll back, but should not harm)

config.assets.compile = true

in production.rb should force the rails with a machine to transfer static


Answer 2

If the above method did not work, you can try in the config / environmental / product.rb file manually specify an assets

config.assets.precompile + =% w (example.css.scss)

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions