Navigation Menu

Skip to content

Commit

Permalink
updates to deploy process to enable new nginx-related crontab and to …
Browse files Browse the repository at this point in the history
…load site skins

Signed-off-by: shalott <shalott@gmail.com>
  • Loading branch information
shalott committed May 5, 2012
1 parent 2b86fb9 commit 857b9a2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/deploy.rb
Expand Up @@ -55,6 +55,10 @@
task :enable_new, :roles => :web do
run "mv #{release_path}/public/maintenance.html #{release_path}/public/nomaintenance.html 2>/dev/null"
end
desc "Update the web-related whenever tasks"
task :update_cron_web, :roles => :web do
run "whenever --update-crontab web -f config/schedule_web.rb"
end
end
end

Expand All @@ -63,6 +67,9 @@
task :update_revision, {:roles => :backend} do
run "/static/bin/fix_revision.sh"
end
task :reload_site_skins, {:roles => :backend} do
run "cd #{release_path}; bundle exec rake skins:load_site_skins RAILS_ENV=production"
end
task :run_after_tasks, {:roles => :backend} do
run "cd #{release_path}; rake After RAILS_ENV=production"
end
Expand Down Expand Up @@ -148,5 +155,6 @@
after "deploy:symlink", "extras:update_revision"

after "deploy:restart", "extras:update_cron"
after "deploy:restart", "deploy:web:update_cron_web"
after "deploy:restart", "extras:restart_delayed_jobs"
after "deploy:restart", "deploy:cleanup"
1 change: 1 addition & 0 deletions config/deploy/staging.rb
Expand Up @@ -5,5 +5,6 @@

before "deploy:migrate", "stage_only:reset_db"
after "deploy:migrate", "extras:reindex_sphinx"
after "deploy:migrate", "extras:reload_site_skins"
after "deploy:restart", "extras:restart_sphinx"
after "deploy:restart", "stage_only:notify_testers"

0 comments on commit 857b9a2

Please sign in to comment.