Skip to content

Commit

Permalink
triggers a restart per capistrano deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cbroome committed Feb 5, 2014
1 parent c4196e0 commit 265ecc1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
#}

namespace :deploy do


after 'deploy:publishing', 'deploy:restart'

desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
Expand All @@ -30,6 +32,7 @@
end
end


after :restart, :clear_cache do
on roles(:web), in: :groups, limit: 3, wait: 10 do
# Here we can do anything such as:
Expand All @@ -42,6 +45,7 @@
# execute 'r.js -o #{release_path}/scripts/app.build.js'
#end
within release_path do
execute 'echo Release path: #{release_path}'
execute 'r.js', ' -o scripts/app.build.js'
end

Expand Down

0 comments on commit 265ecc1

Please sign in to comment.