rerun
rerun copied to clipboard
Watching for git branch switches
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 You can use a git checkout hook that runs something like bin/restart.