Skip to content

Instantly share code, notes, and snippets.

@paneq
Created May 1, 2011 07:44
Show Gist options
  • Save paneq/950331 to your computer and use it in GitHub Desktop.
Save paneq/950331 to your computer and use it in GitHub Desktop.
Start watchr if we are in `rails s`
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