Sha256: c88e510a0b33f918cde5c3ffb7ab13dac74996145f522fab020bf82b0aa24066
Contents?: true
Size: 800 Bytes
Versions: 2
Compression:
Stored size: 800 Bytes
Contents
Capistrano::Configuration.instance.load do before "deploy:setup", :db before "bundle:install", "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
capones_recipes-1.4.0 | lib/capones_recipes/tasks/rails/database_yml.rb |
capones_recipes-1.2.4 | lib/capones_recipes/tasks/rails/database_yml.rb |