[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

[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

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

2018-09-04 Thread Elias Kechter
I think there is a big problem with JavaScript files in Rails 5 apps in Production environment on Heroku. Steps to reproduce Step 1: Creating a new Rails 5 App and switching to the root folder rails new my_app --database=postgresql cd my_app Step 2: Generate a controller rails generate contr