Relaunches the command everytime a file is saved, useful to relaunch your program/app server, especially if it's fast to launch :)
Make sure you have guard installed.
Install the gem with:
gem install guard-relaunch
Or add it to your Gemfile:
gem 'guard-relaunch'
And then add a basic setup to your Guardfile:
guard init relaunch
normal relaunch, kills the pid
guard :relaunch, command: "rackup -p 3000", watch: /\.rb/custom relaunch, define a kill command
guard :relaunch, command: "rackup -p 3000", kill_command: "sudo killall -9 rackup", watch: /\.rb/