You should use the backtrace to find the code connecting to the database.
If you manually add a database addon and promote it then deploy that is one way to work around the connection issue. We only provision a database for your app _after_ the first deploy. — Richard Schneeman On Wed, Mar 5, 2014 at 6:48 AM, Ed Jones <[email protected]> wrote: > Hi, this seems to be a perennial issue that Heroku should just 'fix' by now. > New, very simple app, first time pushing it to Heroku. > 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? >> > There seem to be lots of solutions to this, or at least lots of attempts at > solutions. > - The current 'official' solution here > https://devcenter.heroku.com/articles/rails-asset-pipeline#troubleshooting > doesn't even execute. > - The solution that worked in the fall has been deprecated by Heroku: > > http://stackoverflow.com/questions/16124490/heroku-rails-4-could-not-connect-to-server-connection-refused > > | https://devcenter.heroku.com/articles/labs-user-env-compile > - This is RAILS 4, so the oft-cited solution to > set<http://stackoverflow.com/questions/18503073/cant-deploy-to-heroku-because-the-server-refused-the-connection>config > .assets.initialize_on_precompile = > false<http://stackoverflow.com/questions/18503073/cant-deploy-to-heroku-because-the-server-refused-the-connection>no > longer applies? > As I said, new app from Rails composer with one table of content. First > time (for the app, not me) push to Heroku. > Thanks, > Ed > -- > -- > You received this message because you are subscribed to the Google > Groups "Heroku" group. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en_US?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Heroku Community" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups "Heroku" group. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/heroku?hl=en_US?hl=en --- You received this message because you are subscribed to the Google Groups "Heroku Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
