Reputation: 192
I am trying to deploy rails 4 application on heroku but failed & getting below error. Please try to get me out from this issue...
Bundle completed (42.53s) Cleaning up the bundler cache. -----> Writing config/database.yml to read from DATABASE_URL -----> 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
Upvotes: 0
Views: 49
Reputation: 192
I have first set DATABASE_URL environment variable & then again tried to push code to Heroku again. And it worked as all rake compilation done at Heroku side so no more connection to local machine making rake compilation @ .../tmp/bin..... directory.
I got this solution by trying this thing ... :)
Upvotes: 0
Reputation: 7997
TakeAdd the following to your application.rb:
config.assets.initialize_on_precompile = false
Upvotes: 0