- From: Ruby Newbie <
>
- To:
- Subject: [chef] Possible to subscribe to Deploy Resource?
- Date: Thu, 24 Jun 2010 11:23:51 -0400
Hello, all.
I am using Chef's "deploy_revision" Resource to deploy my application. I also
have some "runit_service" Resources that need to be restarted each time my
application deploys:
============================
deploy_revision "/app/myapp" do
repo
"
:mycompany/myapp.git"
...
end
runit_service "worker_process" do
...
supports :restart => true
subscribes :restart, resources(:deploy_revision => "/app/myapp"),
:immediate
end
============================
Why does the above "subscribes" method not cause the service to restart when
the deploy_revision service fires, even when force_deploy = true? Is there a
way to accomplish this with Chef 0.8.16?
Thanks,
- RN
- [chef] Possible to subscribe to Deploy Resource?, Ruby Newbie, 06/24/2010
Archive powered by MHonArc 2.6.16.