Sha256: 964b51fd9082237165da210bc8632915cbcfd42850ba99fb3dacab9bf3dc07b5
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do require "capistrano/deepmodules" default_run_options[:pty] = true set :ssh_options, { :forward_agent => true} set :deploy_to, "/home/#{user}/apps/#{application}" set :use_sudo, false set :group_writable, false set :keep_releases, 3 set :migrate_env, "password" set :scm, "git" set :deploy_via, :remote_cache set :git_shallow_clone, 1 set :git_enable_submodules, 1 namespace :deploy do desc "Keep only 3 releases" task :after_default do cleanup end desc "clear cached copy, e.g. when changing submodule urls" task :clear_cached_copy do run <<-CMD rm -rf #{shared_path}/cached-copy CMD end end namespace :configs do desc "Create all config files in shared/config" task :copy_database_config do run "mkdir -p #{shared_path}/config" put DatabaseYml, "#{shared_path}/config/database.yml" end desc "Link in the shared config files" task :link do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gorilla-capistrano-recipes-0.1.1 | lib/gorilla-capistrano-recipes/deploy.rb |
gorilla-capistrano-recipes-0.1.0 | lib/gorilla-capistrano-recipes/deploy.rb |