Created
May 1, 2011 07:44
-
-
Save paneq/950331 to your computer and use it in GitHub Desktop.
Start watchr if we are in `rails s`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if defined?(Rails::Server) # rails s only (not in console) | |
fork do | |
exec("watchr", "script/touch.watchr") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment