Skip to content

Commit

Permalink
Merge pull request #2184 from zz9pzza/AO3-4351
Browse files Browse the repository at this point in the history
Ao3 4351 Changes to deployment
  • Loading branch information
sarken committed Sep 29, 2015
2 parents c5058a9 + 20c12a1 commit 669e123
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 7 additions & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
run "/home/ao3app/bin/scheduler_reload"
end


desc "Get the config files"
task :update_configs, :roles => [ :app , :web ] do
run "/home/ao3app/bin/create_links_on_install"
Expand All @@ -102,9 +101,13 @@
end

# Needs to run on web (front-end) servers, but they must also have rails installed
desc "Re-caches the site skins and puts the new versions into the static files area"
task :reload_site_skins, :roles => :web do
run "cd ~/app/current ; bundle exec rake skins:load_site_skins RAILS_ENV=#{rails_env}"
desc "Re-caches the site skins"
task :reload_site_skins do
find_servers(:roles => :web).each do |server|
puts "Caching skins on #{server.host}"
run "cd ~/app/current ; bundle exec rake skins:load_site_skins RAILS_ENV=#{rails_env}", :hosts => server.host
sleep (10)
end
end
end

Expand Down
8 changes: 4 additions & 4 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@

# define servers and their roles and attributes
server "ao3-app01.ao3.org", :app , :db
server "ao3-app98.ao3.org", :app , :workers , :schedulers
server "ao3-app02.ao3.org", :app , :primary => true
server "ao3-app03.ao3.org", :app , :workers , :schedulers
server "ao3-app04.ao3.org", :app
server "ao3-app99.ao3.org", :app , :workers , :schedulers
server "ao3-app05.ao3.org", :app
server "ao3-app06.ao3.org", :app
server "ao3-app07.ao3.org", :app
server "ao3-app08.ao3.org", :app , :workers , :schedulers
server "ao3-app06.ao3.org", :app
server "ao3-app09.ao3.org", :app , :workers , :schedulers
server "ao3-app07.ao3.org", :app
server "ao3-app10.ao3.org", :app , :workers , :schedulers
server "ao3-app98.ao3.org", :app , :workers , :schedulers
server "ao3-app99.ao3.org", :app , :workers , :schedulers
server "ao3-front01.ao3.org", :web
server "ao3-front02.ao3.org", :web

Expand Down

0 comments on commit 669e123

Please sign in to comment.