JavaScript files do not load into production. How to solve?

0

I have the following problem. In production some JS files do not appear, already in development they appear.

Production:

Development:

Does anyone know how to solve it?

    
asked by anonymous 01.07.2014 / 15:24

2 answers

1

It seems like you have renamed application.js to main.js , correct?

If you look at the main-#{checksum}.js file, it should contain all the files you are saying that do not "load."

    
17.07.2014 / 20:15
0

Update

A guy had a provlema similar to yours here ... link

To resolve it added all the files that were supposed to be loaded into Production in Application.js, could you post yours?

Try this too: RAILS_ENV=production bundle exec rake assets:precompile

Also check that all your assets are in the public ...

and if you do not succeed b plan here !!!

Thanks, I hope I have helped !!

    
01.07.2014 / 15:50