Skip to content

Commit

Permalink
LiveReload runit service
Browse files Browse the repository at this point in the history
  • Loading branch information
everm1nd committed May 17, 2012
1 parent 48fcbab commit e83a594
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/development.rb
Expand Up @@ -130,4 +130,8 @@
action :create
end

runit_service "fakes3"
runit_service "fakes3"

runit_service "guard-youroute" do
options :rails_root => "/srv/youroute"
end
2 changes: 2 additions & 0 deletions templates/default/sv-guard-youroute-log-run.erb
@@ -0,0 +1,2 @@
#!/bin/zsh
exec svlogd -tt ./main
5 changes: 5 additions & 0 deletions 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.