Sha256: f9395504f0dc6e0224f87bb54911e4eb1588f8fe50ce4e99eec626e24e13969f
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do role :staging, "www@staging.botandrose.com:22022" namespace "data" do namespace "pull" do desc "pull data" task "default" do run "cd #{application} && rake db:dump && gzip -9f db/data.sql" transfer :down, "#{application}/db/data.sql.gz", "db/data.sql.gz" system "gunzip -f db/data.sql.gz && rake db:load" end end end desc "push app from staging to production" task :deploy, :roles => :production do system "git push github" if `git remote` =~ /\bgithub\b/ run "cd #{application} && git pull origin master && rake bootstrap:production" puts "Deploy Succeeded" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bard-0.9.14 | lib/bard/capistrano.rb |
bard-0.9.13 | lib/bard/capistrano.rb |