dimanche 28 juin 2015

Prevent foreman to crash when typo in code

I am using foreman gem on my Rails project to handle the different processes to be launched at startup (web, mailer, delayed job, ...).

It's working as expected but if I save a file with a typo or try to access a property on a nil object, foreman crash for all processes. I have to manually kill each ruby and node (for maildev) processes in order to run foreman start again.

Is there a way to prevent foreman to crash as the plumber plugin for gulp tasks ?

Thanks !

My project:

  • Rails 4.2
  • Ruby 2.2.0
  • Foreman
  • Server Unicorn
  • Mac OSX

Aucun commentaire:

Enregistrer un commentaire