Hey everyone,
I ran into the following error over the weekend while trying to push 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?
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 stackoverflow post helped to solve the issue. All you need to do is add the following line to your application.rb file:
#Applicication.rb config.assets.initialize_on_precompile = false
Let me know if you have any problems.
Leave a Reply