lib/negroku/tasks/unicorn.rb in negroku-0.0.2 vs lib/negroku/tasks/unicorn.rb in negroku-0.0.3
- old
+ new
@@ -1,9 +1,9 @@
# Number of workers (Rule of thumb is 2 per CPU)
# Just be aware that every worker needs to cache all classes and thus eat some
# of your RAM.
-set_default :unicorn_workers, 2
+set_default :unicorn_workers, 1
# Workers timeout in the amount of seconds below, when the master kills it and
# forks another one.
set_default :unicorn_workers_timeout, 30
@@ -45,9 +45,10 @@
template "unicorn.erb", "/tmp/unicorn.rb"
run "#{sudo} mv /tmp/unicorn.rb #{shared_path}/config/"
end
after "deploy", "unicorn:restart"
+ after "deploy:cold", "unicorn:start"
end
# after 'deploy:setup' do
# unicorn.setup if Capistrano::CLI.ui.agree("Create unicorn configuration file? [Yn]")
\ No newline at end of file