Created
December 15, 2012 19:47
-
-
Save iafonov/4298625 to your computer and use it in GitHub Desktop.
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
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