title: chef deployment?
body: <p>I'm interested in switching from Capistrano to Chef, but am having a few issues putting all the pieces together.</p>
  
  <p>I've followed <a href="http://wiki.opscode.com/display/chef/Quick+Start" rel="nofollow">http://wiki.opscode.com/display/chef/Quick+Start</a> and am able to start EC2 instances with <code>knife</code>. As far as code deployment, it looks as though I want to be doing what's in <a href="http://wiki.opscode.com/display/chef/Deploy+Resource" rel="nofollow">http://wiki.opscode.com/display/chef/Deploy+Resource</a>, the only problem is, nowhere on that page does it mention in what directory/file the deploy <code>/to/path</code> code block should go. </p>
  
  <p>Another issue I'm having is understanding how to deploy code changes after the server has been set up. Perhaps I'm just used to my current workflow (<code>git push &amp;&amp; cap deploy</code>), but the best I can tell is that after I commit my changes I'm supposed to ssh into the server and run <code>sudo chef-client</code>? something about that feels wrong. Is there no cap equivalent, i.e. <code>chef deploy</code>?</p>
  
  <p>Finally (and perhaps this is a bit more difficult), I'm looking to deploy multiple rails apps to a single server. It seems prudent to keep some sort of chef config file in the repo of each app describing the particulars of its deployment, but I'm uncertain how that would then interact with the chef-repo / hosted server. Would each app be a role? And from my understanding of the way things work, I'm also a little uneasy with the idea that 'chef-client' would be trying to deploy all applications when run. With <code>git push &amp;&amp; cap deploy</code> I'm certain of what I'm deploying. Whereas some of the other application repos might not be in a deployable state. Would there be a way to deploy just a single app in this set up?</p>