lib/negroku/tasks/unicorn.rake in negroku-2.0.0.pre1 vs lib/negroku/tasks/unicorn.rake in negroku-2.0.0.pre2

- old
+ new

@@ -43,11 +43,11 @@ set :unicorn_preload, -> { true } ################################### ## capistrano3/nginx variables - # # Add bower to :nodenv_map_bins + # Set the app server socket if nginx is being used set :app_server_socket, -> { fetch(:unicorn_socket) } if was_required? 'capistrano/nginx' end end @@ -84,9 +84,14 @@ 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