Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created December 15, 2012 19:47
Show Gist options
  • Save iafonov/4298625 to your computer and use it in GitHub Desktop.
Save iafonov/4298625 to your computer and use it in GitHub Desktop.
application 'some_application' do
path "/var/www/apps/some_application"
owner 'deploy'
group 'deploy'
purge_before_symlink ['log']
symlinks 'api_keys.yml' => "config/api_keys/#{node['some_application']['environment']}.yml",
'secret_token' => 'secret_token',
'log' => 'log'
repository node['some_application']['repository']
revision node['some_application']['revision']
nginx_load_balancer do
template 'some_application.conf.erb'
end
rails do
gems ['bundler']
end
unicorn do
worker_processes 8
restart_command do
service 'some_application' do
action :restart
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment