Sha256: 6bdb785f9dac162d25543119cde339999121cb6eddb6e9f590abb16ff3685fdb
Contents?: true
Size: 807 Bytes
Versions: 6
Compression:
Stored size: 807 Bytes
Contents
Capistrano::Configuration.instance.load do before "deploy:setup", :db after "deploy:finalize_update", "db:symlink" namespace :db do desc "Create database yaml in capistrano shared path" task :default do run "mkdir -p #{shared_path}/config" upload "config/database.yml.example", "#{shared_path}/config/database.yml", :via => :scp end desc "Make symlink for shared database yaml" task :symlink do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" end task :rake, :roles => :app do run("cd #{deploy_to}/current && /usr/bin/env bundle exec rake #{rake_task} RAILS_ENV=#{rails_env}") end desc "Setup database" task :setup, :roles => :app do set :rake_task, 'db:setup' rake end end end
Version data entries
6 entries across 6 versions & 1 rubygems