Reputation: 2562
Throughout multiple tutorials on how to install Solr so I can start using sunspot_rails in my app, I've become very confused as to actually how to get a singular Solr application to be utilized by my Rails app in multiple environments (dev, test, prod). I'll try and lay out my attempt at understanding the entire setup as far as I've gotten it.
path: /solr/./production
in sunspot.yml?I'm using CentOS (web host), Ubuntu VM (local dev machine), tomcat7 and latest version of Solr.
Upvotes: 0
Views: 147
Reputation: 2562
Whelp, I figured it out. I set up a multicore environment following this article (definitely don't use spaces in the core name), and using the sunspot_rails configuration found here. For clarification, the path:
reference in sunspot.yml is essentially what gets tacked on to the URL when referencing a 'core': i.e., http://mydomain.com:8080/solr/production (emphasis to indicate my point).
So now I don't have to care about running the rake task to start Solr because it's always running all 3 cores on boot through a single instance of Solr via Tomcat.
Upvotes: 1