Search code examples
ruby-on-railsserviceruby-on-rails-3.2godforeman

rails service management in development? ( foreman does not start all services )


My foreman gem does not load all my services. This is my Procfile:

search: redis-server
search: bundle exec rake resque:start  &&> log/resque_worker_queue.log
search: bundle exec rackup private_pub.ru -s thin -E production & &> log/private_pub.log
search: bundle exec rake sunspot:solr:run

Is it possible to fix this Or should I better use GOD gem even in development mode?


Solution

  • The process types must all have unique names. It appears from your Procfile that you've named all the processes search. Try the following as your Procfile:

    redis:  redis-server
    worker: bundle exec rake resque:start  &&> log/resque_worker_queue.log
    web:    bundle exec rackup private_pub.ru -s thin -E production & &> log/private_pub.log
    solr:   bundle exec rake sunspot:solr:run