rails/rails — Issue #4502: assets:precompile shouldn't try to connect to the database
Author: dmathieu
Created: 2012-01-17 18:50:12+00:00
State: open

I get this error when deploying 3.2 on heroku :

-----> 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?

This happens both on rc2 and edge.
The database connections occurs too soon. It's not necessary when precompiling the assets.