在我的 Rails 应用程序上使用 Foreman 和 Ruby 1.9.3 就好了。切换到 JRuby,现在,例如,得到:
18:22:16 solr.1 | /home/scott/.rvm/gems/jruby-1.6.8@jruby168-unicon/gems/foreman-0.47.0/bin/foreman-runner: 32: exec: bundle exec rake sunspot:solr:run: not found
当我bundle exec rake sunspot:solr:run
在命令行上自行运行时,它运行得很好
档案:
web: puma
solr: bundle exec rake sunspot:solr:run
redis: redis-server ./config/redis.conf
sidekiq: bundle exec sidekiq -c $SIDEKIQ_CONCURRENCY -q report -q publish_item -q audio -q import -q email -q enrollment -q bugsnag
bunchball: bundle exec sidekiq -c 2 -q bunchball
sidekiq_solr: bundle exec sidekiq -c 1 -q solr