0
I have the following problem. In production some JS files do not appear, already in development appear.
Production:
Developing:
Does anyone know how to solve?
0
I have the following problem. In production some JS files do not appear, already in development appear.
Production:
Developing:
Does anyone know how to solve?
1
looks like you renamed the application.js
for main.js
, correct?
if you look at the file main-#{checksum}.js
, it should contain all the files you are saying that "do not load".
0
Updatee
A little guy had a taste like yours here... link
To resolve it added all the files that should be loaded into production in Application.js, you could post yours ?
Try that too:
RAILS_ENV=production bundle exec rake assets:precompile
Also check that all your Assets are in the folder public
...
and if the plan b here!!!
Valeuu, I hope I helped!!
Browser other questions tagged javascript ruby-on-rails
You are not signed in. Login or sign up in order to post.
But which files do not appear?
– Bruno Casali
@Brunocasali, I edited the question. From a look.
– Jefferson Alison
I get the impression you’re not up to speed on how Rails deals with Assets (Javascript, CSS and images). Please read this section of the official guide: http://guides.rubyonrails.org/asset_pipeline.html
– user7261