added config.assets.initialize_on_precompile = false to the application.rb file to resolve the bad connection error in heroku