rerun icon indicating copy to clipboard operation
rerun copied to clipboard

Watching for git branch switches

Open Cervenka opened this issue 6 years ago • 1 comments

Hello,

I've tried using rerun to restart my rails server in case I switch to a different branch. The --no-ignore-dotfile doesn't seem to have an effect.

rerun --no-ignore-dotfiles --pattern ".git/HEAD" rails s

Maybe I'm not specifying the pattern correctly? Thank you!

Cervenka avatar Jun 18 '18 14:06 Cervenka

@Cervenka You can use a git checkout hook that runs something like bin/restart.

eloyesp avatar Mar 26 '19 16:03 eloyesp