简体   繁体   English

我可以在不运行Rails应用程序的rake命令的情况下运行Solr服务器吗?

[英]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。


Please suggest some of the solutions regarding this 请提出一些与此有关的解决方案

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.

相关问题 Rails - 我可以运行rake资产:在生产服务器上预编译,而生产应用程序仍在运行吗? - Rails - Can I run rake assets:precompile on production server, while the production app is still running? 如何在Rails 4.2中运行生产中的延迟作业而不运行rake jobs命令? - How to run delayed jobs in production in Rails 4.2 without running rake jobs command? 我们如何通过另一个应用程序(都运行在同一台服务器上)运行一个应用程序的 rake 任务? - How can we run a rake task of one application through another application (both running on the same server)? 我可以运行我的 rake 作业吗:在运行我的 rails 服务器时在同一个 docker 容器中工作? - Can I run my rake jobs:work in the same docker container as I run my rails server? 如果我正在运行 rake 命令,如何在 rails 中检测? - How do I detect in rails if I am running a rake command? 您可以在弹性 beantalk 环境中运行 rails 控制台或 rake 命令吗? - Can you run a rails console or rake command in the elastic beanstalk environment? rails 4 - rake命令显示每次运行rake db:migrate命令时的弃用警告 - rails 4 - rake command shows deprecation warning everytime I run the rake db:migrate command 如何在rails应用程序中运行rake任务 - How do I run rake tasks within my rails application Rails Server 挂起,Rake db.migrate 挂起,似乎挂在 DB 服务器连接上,但我可以毫无问题地连接到 DB 服务器 - Rails Server hangs, Rake db.migrate hangs, appears to be hanging on DB server connection, but I can connect to DB server without a problem 我可以运行rake任务来模拟sidekiq运行吗? - Can I run a rake task to simulate sidekiq running?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM