Sha256: 657d9c2c621dc384cbdeb4048767ffe52b63049dd0e709f41a974c3661ade9d6
Contents?: true
Size: 697 Bytes
Versions: 18
Compression:
Stored size: 697 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do role :staging, "staging@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
18 entries across 18 versions & 1 rubygems