Re: [Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-05 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 11:13 PM, Elias Kechter wrote: > yes this would have helped me alot. I figured it out yesterday after I wrote > the alst emssage. It was all the failure of the uglifier gem. I changed the > gem version to 3.0.8 (it was 4.1.18 before) and it worked. The uglifier gem > someho

[Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Elias Kechter
Hey Hassan, yes this would have helped me alot. I figured it out yesterday after I wrote the alst emssage. It was all the failure of the uglifier gem. I changed the gem version to 3.0.8 (it was 4.1.18 before) and it worked. The uglifier gem somehow produced corrupted JS files. But you would hav

Re: [Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Hassan Schroeder
On Tue, Sep 4, 2018 at 1:34 PM, Elias Kechter wrote: > It does not work in production either. The Error is now I am def not an expert with the asset pipeline -- try to minimize JS usage, anyway -- but commenting out the js_compre

[Rails] Re: JavaScript fails on a fresh Rails App deployed to Heroku

2018-09-04 Thread Elias Kechter
I have tried to start it in production mode: rails db:create -RAILS_ENV=producion > rails db:migrate -RAILS_ENV=producion rails assets:precompile rails s -e production It does not work in production either. The Error is now Failed to load resource: the server responded with a status of