Reputation: 1688
I am developing a spree application ,I recently removed and reinstalled ruby 1.9.3, now whenever I try rails s on terminal I get the following error :
/home/swapnil/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/http.rb:762:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
Upvotes: 5
Views: 16027
Reputation: 547
Try this one : rake sunspot:solr:start
Look at this issue.I guess it may be helpful to you.
sunspot_rails gem - " Errno:: ECONNREFUSED (Connection refused - connect (2)) "
Upvotes: 8
Reputation: 46914
You just need configure your Database connection in your database.yml and launch your SQL server with this configuration
Upvotes: 3