带有太阳黑子的工头宝石无法启动
有人对带有太阳黑子宝石的工头宝石(从 1 个命令加载您的耙子任务和守护进程)有疑问吗?我总是必须手动启动 sunspot,因为 Foreman 确实说它会加载它,但事实并非如此
总是必须手动运行此命令才能启动 sunspot/solr:
bundle exec rake sunspot:solr:start
有人知道如何让它加载真正的 foreman 吗?
Anyone has issues with the foreman gem ( loads your rake tasks and deamons from 1 command ) with sunspot gem? I always have to manually start sunspot because Foreman does say it loads it but it isn't
Always have to manually run this command to get sunspot/solr to start:
bundle exec rake sunspot:solr:start
anyone knows a way to make it load true foreman?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加
到您的 Procfile 应该在运行 foreman 时启动 Solr。它要求进程在前台启动。 rake sunspot:solr:start 在后台启动 Solr 后立即退出,并且 foreman 认为该进程已终止。
Adding
to your Procfile should start Solr when running foreman. It requires processes to be start in foreground. rake sunspot:solr:start immediately exits after starting Solr in background and foreman assumes that the process died.