Skip to content

Instantly share code, notes, and snippets.

@colinrymer
Created April 30, 2013 20:31
Show Gist options
  • Save colinrymer/5491714 to your computer and use it in GitHub Desktop.
Save colinrymer/5491714 to your computer and use it in GitHub Desktop.
Noah Agent
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
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