7. 1/2
configuration
set :application, “siege”
set :repository, “git@github.com:m3nd3s/siege.git”
set :scm, :git
set :branch, “master”
set :ssh_options, { :forward_agent => true }
set :user, “giran”
set :deploy_to, “/home/giran/siege”
set :my_var, “Giran Siege”
config/deploy.rb
8. 2/2
configuration
role :web, “siege.giran.com.br”
role :app, “siege.giran.com.br”
role :db, “siege.giran.com.br”
12. database
●
Database needs to be created
namespace :deploy do
task :database, :roles => :app do
run "cp #{deploy_to}/shared/database.yml
#{current_path}/config/"
end
end