Connection refused - connect(2)
RAILS_ROOT: /root/bibapp
/usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
/usr/lib/ruby/1.8/net/http.rb:560:in `open'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/timeout.rb:53:in `timeout'
/usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
/usr/lib/ruby/1.8/net/http.rb:560:in `connect'
/usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
/usr/lib/ruby/1.8/net/http.rb:542:in `start'
/usr/lib/ruby/1.8/net/http.rb:1035:in `request'
/usr/lib/ruby/1.8/net/http.rb:845:in `post'
/usr/lib64/ruby/gems/1.8/gems/solr-ruby-0.0.8/lib/solr/connection.rb:158:in `post'
/usr/lib64/ruby/gems/1.8/gems/solr-ruby-0.0.8/lib/solr/connection.rb:151:in `send'
/root/bibapp/app/models/index.rb:263:in `fetch'
/root/bibapp/app/controllers/application_controller.rb:111:in `search'
/root/bibapp/app/controllers/works_controller.rb:107:in `index'
Parameters:
{"sort"=>"created_at"}
Headers:
{"Content-Type"=>"",
"Cache-Control"=>"no-cache"}--
You received this message because you are subscribed to the Google Groups "bibapp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bibapp+un...@googlegroups.com.
To post to this group, send email to bib...@googlegroups.com.
Visit this group at http://groups.google.com/group/bibapp?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "bibapp" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bibapp/HA0jGe53ybU/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to bibapp+un...@googlegroups.com.
Yes, solr is running. I am able to get to the admin page on port 8982
how can I make one server development and another server production?
Joe,
It's perfectly fine to run your production app on a virtual machine. That's pretty much the norm these days. We've been using Rackspace for ours. More importantly, you''ll want at least 2gb of RAM for Solr and a decent CPU for Ruby.
We do all our data management on the production instance. I would recommend starting with that and then scaling out and up as you need. Development environment is for developing on your local machine, etc. See the Rails guides on this topic.
You can start rails server with -d to daemonize it.
I think development environment is configured to not send emails by default. You can config/environments/development.rb
Does it still send when started as production?
I meant to add earlier that you probably shouldn't use rails server for your live, production app. I think you mentioned using Apache and mod_rails which is a good way to go. Thin, Passenger Standalone, and Nginx with Passenger are other good options for production.
Jason