Slide 378
Slide 378 text
require 'mina/bundler'!
require 'mina/git'!
!
set :domain, 'buildright.io'!
set :deploy_to, '/var/www/buildright.io'!
set :repository, 'git://...'!
set :branch, 'master'!
!
set :shared_paths, ['log']!
!
task :setup => :environment do!
queue! %[mkdir -p "#{deploy_to}/shared/log"]!
queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/log"]!
end!
!
desc "Deploys the current version to the server."!
task :deploy => :environment do!
deploy do!
invoke :'git:clone'!
invoke :'deploy:link_shared_paths'!
invoke :'bundle:install'!
!
to :launch do!
queue "touch #{deploy_to}/tmp/restart.txt"!
end!
end!
end!
desc "Deploys the current version to the server."!
task :deploy => :environment do!
deploy do!
invoke :'git:clone'!
invoke :'deploy:link_shared_paths'!
!
to :launch do!
end!
end!
end
deploy.rb