Skip to content

Commit

Permalink
restart on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
cqr committed May 28, 2014
1 parent f8a6e02 commit 1f7c991
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set :application, 'prx.org-frontend'
set :repo_url, 'git://github.com/PRX/PRX.org-frontend.git'
set :linked_dirs, %w{node_modules}
set :linked_dirs, %w{node_modules tmp}
set :default_env, { path: "/opt/node/current/bin:/opt/python/current/bin:$PATH" }

namespace :deploy do
Expand All @@ -20,5 +20,15 @@
end
end

desc 'Restart prerender process'
task :restart do
on roles(:web) do
within release_path do
execute :touch, 'tmp/restart.txt'
end
end
end

after :updated, :compile_assets
after :publishing, :restart
end

0 comments on commit 1f7c991

Please sign in to comment.