Created
April 30, 2013 20:31
-
-
Save colinrymer/5491714 to your computer and use it in GitHub Desktop.
Noah Agent
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
description "Noah Agent" | |
# automatically start | |
start on filesystem | |
# working directory | |
chdir <%= @noah_agent_dir %> | |
# command to run, with Bundler support! | |
exec bundle exec ruby <%= @noah_agent %> -p <%= @noah_agent_port %> -e production 2>&1 <%= @noah_agent_log %> | |
respawn |
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
require 'sinatra' | |
post 'callback' do | |
`sudo chef-client` | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment