Browse Source

application recipes now search correct resource name - fixes COOK-542

Erik Frey 13 years ago
parent
commit
672ea0a1bf
3 changed files with 3 additions and 3 deletions
  1. 1 1
      recipes/gunicorn.rb
  2. 1 1
      recipes/passenger_apache2.rb
  3. 1 1
      recipes/unicorn.rb

+ 1 - 1
recipes/gunicorn.rb

@@ -47,7 +47,7 @@ runit_service app['id'] do
 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

+ 1 - 1
recipes/passenger_apache2.rb

@@ -40,7 +40,7 @@ web_app app['id'] do
   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

+ 1 - 1
recipes/unicorn.rb

@@ -46,7 +46,7 @@ runit_service app['id'] do
 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