forked from sunspot/sunspot
-
Notifications
You must be signed in to change notification settings - Fork 0
Configuring solr for use with sunspot in development, testing, and production
MissingHandle edited this page Jul 1, 2011
·
6 revisions
Recommended Guideline for configuring Solr with a Tomcat server: http://wiki.apache.org/solr/SolrTomcat
production:
solr:
hostname: solrserver
port: 8080 #tomcat defaults to port 8080
path: '/solr-example'
log_level: WARNING
development:
solr:
hostname: localhost
port: 8982
log_level: INFO
test:
solr:
hostname: localhost
port: 8981
log_level: WARNING
Notice that the above configuration details that the server run on a different port for each environment. Provide the rake tasks with the correct rails environment on start/stop/run. E.g.:
RAILS_ENV=test rake sunspot:solr:start
You may want to look at the sunspot-rails-tester gem