Sha256: 3eeef1b2137b8fd3f9c401dc88b998e8428cce03bbdbe50a154ea84ce6c292d0
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
namespace :siesqo do namespace :redirect do desc 'Enable a redirect page, all traffic will be redirected to this page.' task :enable do on roles(:web) do execute :mkdir, '-p', "#{shared_path}/redirect" execute :wget, '-qO', "#{shared_path}/redirect/index.php http://static.siesqocoders.be/redirect/index.phps" execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.siesqocoders.be/redirect/htaccess" execute :sed, '-i', "'s|<real-url>|#{fetch :production_url}|' #{shared_path}/redirect/index.php" execute :rm, '-f', "#{fetch :deploy_to}/current" execute :ln, '-s', "#{shared_path}/redirect #{fetch :deploy_to}/current" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-siesqo-1.0.0 | lib/capistrano/tasks/redirect.rake |