Skip to content
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

Watching for git branch switches #123

Open
Cervenka opened this issue Jun 18, 2018 · 1 comment
Open

Watching for git branch switches #123

Cervenka opened this issue Jun 18, 2018 · 1 comment

Comments

@Cervenka
Copy link

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!

@eloyesp
Copy link
Contributor

eloyesp commented Mar 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants