-
Notifications
You must be signed in to change notification settings - Fork 486
How to handle run_on_changes once?
#901
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What you can do is pausing Guard (by entering |
|
Is it possible to send guard commands from outside? I'm wondering if it would be possible to add an alias for |
For the whole team of developers? Ha-ha. I don't think so. |
Not sure what you mean? I was thinking about writing my own git alias (in my own zshrc)... something like |
@bmulholland, oh, sorry. I thought you've suggested me a solution for this issue. You can look at this section of wiki. |
Oh nice! So then couldn't you use that to solve the problem in this issue? Specifically instead of this:
You could just do e.g. |
OK, one more time: I don't want to ask every developer in our team to add some aliases as work-around. I'm sure that a library like |
Hello!
I have the project with
git
,guard
andguard-puma
.guard-puma
hasrun_on_changes
(and nothing more), in which it's sendingrestart
command topuma
. Puma restarting in about 5 seconds (depends on project and configuration), in the background.Problem: on
$ git checkout another_branch
run_on_changes
is triggering multiple times: for modfied files, for added file and for removed files. Puma doesn't have time to restart between these triggers.Question: can I handle
run_on_changes
one time for any changes? If there are many changes (additionals, removals, etc.) — anyway one time. Maybe withHash
instead ofArray
of paths, I don't know. Or it's better with all paths (of added files, removed and modified) in oneArray
(and one method trigger).Thank you.
The text was updated successfully, but these errors were encountered: