Skip to content
Browse files

LiveReload runit service

  • Loading branch information...
1 parent 48fcbab commit e83a5941b02747abef344306ac85e199a0cfcdb5 @everm1nd everm1nd committed May 17, 2012
View
6 recipes/development.rb
@@ -130,4 +130,8 @@
action :create
end
-runit_service "fakes3"
+runit_service "fakes3"
+
+runit_service "guard-youroute" do
+ options :rails_root => "/srv/youroute"
+end
View
2 templates/default/sv-guard-youroute-log-run.erb
@@ -0,0 +1,2 @@
+#!/bin/zsh
+exec svlogd -tt ./main
View
5 templates/default/sv-guard-youroute-run.erb
@@ -0,0 +1,5 @@
+#!/bin/zsh
+exec 2>&1
+export RAILS_ROOT=<%= @options[:rails_root] %>
+cd $RAILS_ROOT
+exec chpst bundle exec guard -i

0 comments on commit e83a594

Please sign in to comment.
Something went wrong with that request. Please try again.