Sha256: 736eacc40431a3e16e62c380c74814e16e387beb5dc0b7d60a4f32e2bd4cd116

Contents?: true

Size: 1.64 KB

Versions: 9

Compression:

Stored size: 1.64 KB

Contents

set :application, ''
set :domain, ''
set :deploy_domain, ''
set :vhost_domain, ''

# set application folder
set :deploy_to, "/var/projects/#{application}/xxx"

set :rails_root, File.expand_path('../../', __FILE__)
set :rails_env, :production # use 'stage' to differ between stage environments

set :user,  'deploy'

server domain, :web, :app, :db, :primary => true

# Multistage settings
#set :stage_dir, File.dirname(__FILE__) + '/deploy/stages'
#set :default_stage, "vagrant"
#require 'capistrano/ext/multistage'

# database
set :db_name, ''
set :db_user_name, ''
set :db_user_password, ''

set :branch, ENV['BRANCH'] || 'develop'
set :repository, 'xxx.git'

set(:shared_directories_to_create) {
  %W(#{shared_path}/bundle #{shared_path}/cache)
}

set(:shared_directories_to_link) {
  {
      "#{shared_path}/bundle/" => "#{release_path}/vendor/bundle"
  }
}

set(:directories_to_create) {
  %W()
}

set(:files_to_link) {
  {
      "#{shared_path}/config/config.#{stage}.yml" => "#{release_path}/config/config.local.yml",
      "#{shared_path}/config/unicorn.#{stage}.rb" => "#{release_path}/config/unicorn.production.rb"
  }
}

set(:files_to_delete) {
  %W()
}

set(:chmods_to_set) {
  {
#    "#{shared_path}/data/pdf"         => 755
  }
}

require 'ms_deploy/recipes/defaults'

require 'ms_deploy/recipes/rbenv'
require 'ms_deploy/recipes/assets'
require 'ms_deploy/recipes/nginx'
require 'ms_deploy/recipes/bundler'
require 'ms_deploy/recipes/symlink'
require 'ms_deploy/recipes/unicorn'
require 'ms_deploy/recipes/setup'
require 'ms_deploy/recipes/monitoring'
require 'ms_deploy/recipes/seeding'
#require 'ms_deploy/recipes/paperclip'
#require 'ms_deploy/recipes/airbrake'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ms_deploy-0.3.6 lib/examples/deploy.rb
ms_deploy-0.3.5 lib/examples/deploy.rb
ms_deploy-0.3.4 lib/examples/deploy.rb
ms_deploy-0.3.3 lib/examples/deploy.rb
ms_deploy-0.3.2 lib/examples/deploy.rb
ms_deploy-0.3.1 lib/examples/deploy.rb
ms_deploy-0.3.0 lib/examples/deploy.rb
ms_deploy-0.2.5 lib/examples/deploy.rb
ms_deploy-0.2.4 lib/examples/deploy.rb