This seems like a common problem, so let me start with the fact that I have already done a lot.
After this thread I ran
heroku labs:enable user-env-compile -a myapp
Then I made sure that the assets are precompiled locally by running
RAILS_ENV=production bundle exec rake assets:precompile
They make.
I also took this advice by setting
config.assets.initialize_on_precompile = false
in my configuration /production.rb and config / application.rb.
In addition, following this problem , I was convinced that I had heroes installed:
gem 'rails_log_stdout', github: 'heroku/rails_log_stdout' gem 'rails3_serve_static_assets', github: 'heroku/rails3_serve_static_assets'
Then I made sure that I have bin in my path, following this heroku article .
Then I made sure that I followed the "Getting Started with Rails 4.xx" article on heroku.
I also repeated the following answer to this question and posted the following in application.rb and production.rb
config.serve_static_assets = true
Here is the error I get when running git push heroku master :
Preparing app for Rails asset pipeline Running: rake assets:precompile rake aborted! could not connect to server: Connection refused Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5432?
It seems that config.assets.initialize_on_precompile = false should have worked, because it seems like it is trying to load the production database during pre-compilation.
I made all these changes and they were advanced in git . Now what should I try?