5
votes

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)

2

2 Answers

3
votes

You just need configure your Database connection in your database.yml and launch your SQL server with this configuration

8
votes

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)) "