Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
[COOK-542] additional fixes for deploy resource being searched by out…
Browse files Browse the repository at this point in the history
…dated name
  • Loading branch information
schisamo committed May 4, 2011
1 parent 29d545c commit 5a3a6a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion application/recipes/mod_php_apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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
service "apache2" do action :restart; end
end
Expand Down
8 changes: 5 additions & 3 deletions application/recipes/passenger_apache2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@
rails_env node.app_environment
end

d = resources(:deploy_revision => app['id'])
d.restart_command do
service "apache2" do action :restart; end
if ::File.exists?(::File.join(app['deploy_to'], "current"))
d = resources(:deploy_revision => app['id'])
d.restart_command do
service "apache2" do action :restart; end
end
end

apache_site "000-default" do
Expand Down

0 comments on commit 5a3a6a8

Please sign in to comment.