lib/negroku/tasks/unicorn.rake in negroku-2.2.0 vs lib/negroku/tasks/unicorn.rake in negroku-2.3.0

- old
+ new

@@ -81,22 +81,21 @@ after 'deploy:published', 'restart' do invoke 'negroku:unicorn:setup' invoke 'unicorn:restart' end - # Ensure the folders needed exist - after 'deploy:check', 'deploy:check:directories' do - on release_roles fetch(:unicorn_roles) do - execute :mkdir, '-pv', "#{shared_path}/config" - execute :mkdir, '-pv', "#{shared_path}/tmp/sockets" - execute :mkdir, '-pv', "#{shared_path}/tmp/pids" - end - end - define_logs(:unicorn, { error: 'unicorn-error.log', out: 'unicorn-out.log' }) end +end +# Ensure the folders needed exist +task 'deploy:check:directories' do + on release_roles fetch(:unicorn_roles) do + execute :mkdir, '-pv', "#{shared_path}/config" + execute :mkdir, '-pv', "#{shared_path}/tmp/sockets" + execute :mkdir, '-pv', "#{shared_path}/tmp/pids" + end end