Note: I am using Rails 3.2.13 and Ruby "1.9.3", and postgres-0.15.1
I tried to push my Ruby on Rails app in to heroku by following the procedure this website http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec-deploying , but I got error while try to push into heroku
Connecting to database specified by DATABASE_URL 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?
! Precompiling assets failed.
! Push rejected, failed to compile Ruby app
To [email protected]:pure-hamlet-9148.git
! [remote rejected] master -> master (pre-receive hook declined)
So, I Googled myself and run the below command
heroku labs:disable user-env-compile heroku labs:enable user-env-compile
Still getting the same error, please some help me to resolve this issue.
Check this article about Heroku and Rails asset:precompile error. You should set
config.assets.initialize_on_precompile = false