summaryrefslogtreecommitdiff
path: root/config/deploy/production.rb
blob: 41355af9e80e4e8881b627195d76ca987bfe176b (plain)
1
2
3
4
5
6
7
8
servers = ChefSearch.new("production")

role :app, servers.find_by(:app).map { |x| "#{fetch(:user)}@#{x}" }
role :web, servers.find_by(:www).map { |x| "#{fetch(:user)}@#{x}" }
role :db, servers.find_by(:db).map { |x| "#{fetch(:user)}@#{x}" }

set :rails_env, 'production'
set :domain, 'www.cakeside.com'