Sha256: 3f0c183e911a9d55bcd9c5356759a2265ccd1740cff9db1097604fae074eb541
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist) configuration.load do require "gorilla-capistrano-recipes/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 after "deploy", "deploy:cleanup" namespace :deploy do 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 database_yml, "#{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.2.2 | lib/gorilla-capistrano-recipes/deploy.rb |
gorilla-capistrano-recipes-0.2.1 | lib/gorilla-capistrano-recipes/deploy.rb |