Skip to content

Commit

Permalink
Add second production deployment target
Browse files Browse the repository at this point in the history
Deploy to staticweb2-prod.puppetlabs.com in addition to staticweb1-prod
  • Loading branch information
Daniel Dreier committed Mar 7, 2015
1 parent 4bb473c commit 77d76e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -326,7 +326,7 @@ end

desc "Deploy the site to the production servers"
task :deploy do
mirrors = ['mirror0']
mirrors = ['mirror0','mirror1']
Rake::Task['build'].invoke
mirrors.each do |mirror|
sh "rake #{mirror} vlad:release"
Expand Down
5 changes: 5 additions & 0 deletions config/deploy.rb
Expand Up @@ -7,6 +7,11 @@
set :deploy_to, "/var/www/#{application}"
end

task :mirror1 do
set :domain, "#{user}@staticweb2-prod.puppetlabs.com"
set :deploy_to, "/var/www/#{application}"
end

task :preview1 do
set :domain, "#{user}@docspreview1.puppetlabs.lan"
set :deploy_to, "/opt/docspreview1"
Expand Down

0 comments on commit 77d76e5

Please sign in to comment.