|
@@ -31,7 +31,7 @@ node.set[:unicorn][:options] = { :tcp_nodelay => true, :backlog => 100 }
|
|
|
|
|
|
unicorn_config "/etc/unicorn/#{app['id']}.rb" do
|
|
|
listen({ node[:unicorn][:port] => node[:unicorn][:options] })
|
|
|
- working_directory File.join(app['deploy_to'], 'current')
|
|
|
+ working_directory ::File.join(app['deploy_to'], 'current')
|
|
|
worker_timeout node[:unicorn][:worker_timeout]
|
|
|
preload_app node[:unicorn][:preload_app]
|
|
|
worker_processes node[:unicorn][:worker_processes]
|
|
@@ -45,7 +45,7 @@ runit_service app['id'] do
|
|
|
run_restart false
|
|
|
end
|
|
|
|
|
|
-if File.exists?(File.join(app['deploy_to'], "current"))
|
|
|
+if ::File.exists?(::File.join(app['deploy_to'], "current"))
|
|
|
d = resources(:deploy => app['id'])
|
|
|
d.restart_command do
|
|
|
execute "/etc/init.d/#{app['id']} hup"
|