Javascript files do not load in production. How to resolve?

Asked

Viewed 456 times

0

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

Production: inserir a descrição da imagem aqui

Developing: inserir a descrição da imagem aqui

Does anyone know how to solve?

  • But which files do not appear?

  • @Brunocasali, I edited the question. From a look.

  • 1

    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

2 answers

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

You are not signed in. Login or sign up in order to post.