Skip to content

makevoid/guard-relaunch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guard::Relaunch

Relaunches the command everytime a file is saved, useful to relaunch your program/app server, especially if it's fast to launch :)

Install

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

Usage

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/

About

Guard plugin / gem to run a command everytime a file is saved, alternative to guard-shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages