[英]Can I run Solr server without running rake command for rails application?
Is there any alternate way for running solr server without running rake command for rails application like providing all those solr related classes into single jar and then use that jar. 是否有任何其他方法可以运行solr服务器,而无需为Rails应用程序运行rake命令,例如将所有那些与solr相关的类提供到单个jar中,然后使用该jar。
Thanks 谢谢
I don't know if you checked Sunspot (the best haha), but you can use the start/stop commands, for example: https://github.com/sunspot/sunspot#sunspot_rails 我不知道您是否检查过太阳黑子(最好的哈哈),但是您可以使用开始/停止命令,例如: https : //github.com/sunspot/sunspot#sunspot_rails
bundle exec sunspot-solr start -p 8983
Also check this out for an example https://gist.github.com/doitian/1795439 (integrates Sunspot with Capistrano, but you can get an idea of the implementation) 另请查看示例https://gist.github.com/doitian/1795439 (将Sunspot与Capistrano集成在一起,但是您可以了解实现方法)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.