From 70f36c477cc0cdd7a175a9ec74edb7a4ccd27bf5 Mon Sep 17 00:00:00 2001 From: Erik Frey Date: Tue, 3 May 2011 13:53:15 -0700 Subject: [PATCH] application recipes now search correct resource name - fixes COOK-542 --- application/recipes/gunicorn.rb | 2 +- application/recipes/passenger_apache2.rb | 2 +- application/recipes/unicorn.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/recipes/gunicorn.rb b/application/recipes/gunicorn.rb index 57518268a..94cd4c073 100644 --- a/application/recipes/gunicorn.rb +++ b/application/recipes/gunicorn.rb @@ -47,7 +47,7 @@ end if ::File.exists?(::File.join(app['deploy_to'], "current")) - d = resources(:deploy => app['id']) + d = resources(:deploy_revision => app['id']) d.restart_command do execute "/etc/init.d/#{app['id']} hup" end diff --git a/application/recipes/passenger_apache2.rb b/application/recipes/passenger_apache2.rb index d571aba5b..b8e7fe322 100644 --- a/application/recipes/passenger_apache2.rb +++ b/application/recipes/passenger_apache2.rb @@ -40,7 +40,7 @@ rails_env node.app_environment end -d = resources(:deploy => app['id']) +d = resources(:deploy_revision => app['id']) d.restart_command do service "apache2" do action :restart; end end diff --git a/application/recipes/unicorn.rb b/application/recipes/unicorn.rb index 3d809ab3d..c5d604f5c 100644 --- a/application/recipes/unicorn.rb +++ b/application/recipes/unicorn.rb @@ -46,7 +46,7 @@ end if ::File.exists?(::File.join(app['deploy_to'], "current")) - d = resources(:deploy => app['id']) + d = resources(:deploy_revision => app['id']) d.restart_command do execute "/etc/init.d/#{app['id']} hup" end