title: Error while deploying to heroku: rake assets:precompile PG::ConnectionBad: could not connect to server: Connection refused
body: <p>While trying to git push the application to heroku, i get this specific error:</p>
  
  <pre><code>remote:        Running: rake assets:precompile 
  remote:        PG::ConnectionBad: could not connect to server: Connection     refused
  remote:        Is the server running on host "127.0.0.1" and accepting
  remote:        TCP/IP connections on port 5432?
  </code></pre>
  
  <p>I tried to follow the steps of the article : <code>https://devcenter.heroku.com/articles/rails-asset-pipeline#troubleshooting</code></p>
  
  <p>And my assets were compiling locally without the need of a connection to a data base.</p>
  
  <p>I have added also the <code>config.assets.initialize_on_precompile = false</code> </p>
  
  <p>But the error still occurs when trying to deploy in heroku...</p>
  
  <p>Any idea about what am i doing wrong ?</p>
  
  <p>Thanks!</p>
  
  <p>P.S: I am using spree 3.0.0 with rails 4.2.0</p>