Sha256: 758dee10ae0d8ee13f7a7250447b8880fca41ce0cce223ef17ae7830f9ac8e53
Contents?: true
Size: 720 Bytes
Versions: 5
Compression:
Stored size: 720 Bytes
Contents
namespace :sumo 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.sumocoders.be/redirect/index.phps" execute :wget, '-qO', "#{shared_path}/redirect/.htaccess http://static.sumocoders.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
5 entries across 5 versions & 1 rubygems