Skip to content

Instantly share code, notes, and snippets.

@iafonov
Created Dec 15, 2012
Embed
What would you like to do?
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