我安装了 Foreman gem,以便在每次运行我的应用程序时启动 Sunspot:
档案:
search: bundle exec rake sunspot:solr:start
这是输出:
alex@alex-K43U:~/rails/inkleak$ foreman start
08:05:09 search.1 | started with pid 5278
08:05:35 search.1 | java version "1.6.0_24"
08:05:35 search.1 | OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~11.10.1)
08:05:35 search.1 | OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)
08:05:35 search.1 | Removing stale PID file at /home/alex/rails/inkleak/solr/pids/development/sunspot-solr-development.pid
08:05:35 search.1 | Successfully started Solr ...
08:05:35 search.1 | exited with code 0
08:05:35 system | sending SIGTERM to all processes
SIGTERM received
可能是什么问题呢?
(顺便说一句,当我这样做时,太阳黑子运行得很好rake sunspot:solr:start
)