Sha256: 305ad767f2f99a2aec980ce170f10f6908b5fe7383d780a3c2116587c7aee0ce
Contents?: true
Size: 693 Bytes
Versions: 1
Compression:
Stored size: 693 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do role :staging, "www@staging.botandrose.com" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bard-0.9.12 | lib/bard/capistrano.rb |