Closed jmuheim closed 6 years ago
My solution is creating a shell script, then add all the commands that you want to be run in there and invoke it into the rerun
command, like this.
rerun --background --pattern="**/*.{rb}" --dir bin,src "./bin/reload"'
That's a very cool suggestion. Thanks!
More detail: &&
is a shell operator, but rerun works below the shell, directly on processes, so it can't do command pipes like that.
I have the following rerun command:
Sometimes rerun is triggered because the Gemfile changes; and then sometimes it's because a new gem was added which isn't installed yet.
For this, I'd like not to only run
rails s
butbundle && rails s
.Sadly, this doesn't work for me:
Then nothing happens anymore.
Interestingly, when I hit Ctrl+C, it proceeds like this:
So maybe there's another way to execute two commands in a row?