ranmocy / guard-rails

Guard-Rails is watching on your development servers as you wish!
http://ranmocy.github.com/guard-rails
MIT License
137 stars 25 forks source link

guard-rails mysteriously restarting #46

Closed istrasci closed 7 years ago

istrasci commented 7 years ago

When I upgraded from rails-4.2.7.1 to 5.0.1, guard is mysteriously restarting itself for some reason. See my Stackoverflow post for output and more detail.

ranmocy commented 7 years ago

As my test, the minimal buggy Guardfile looks like:

guard 'rails'
guard 'yard'

The issue is that, for reason unknown, guard-yard stop and restart Puma server during starting. Which is the default dev server introduced in Rails 5.0. If rails has already started, it will kill the server and cause it to restart but failed.

What you need to do is simply swap them:

guard 'yard'
guard 'rails'

In fact, I believe guard-yard should not kill rails server by all means.

istrasci commented 7 years ago

This appears to work. Thank you!