[chef] Re: application cookbook w/ Rails app


Chronological Thread 
  • From: Igor Afonov < >
  • To:
  • Subject: [chef] Re: application cookbook w/ Rails app
  • Date: Sat, 21 Jul 2012 20:58:58 +0300

Hi, take a look into https://github.com/iafonov/stacker. This is boilerplate chef repository I'm using to deploy rails applications. It has working example and uses application and application_ruby cookbooks.

Particulary you could be interested in the following things:
Deploy recipe:
https://github.com/iafonov/stacker/blob/master/vendor-cookbooks/copycopter/recipes/deploy.rb
Application's cookbook:
https://github.com/iafonov/stacker/tree/master/vendor-cookbooks/copycopter

Also I've open sourced a cookbook for managing deployment of several rails applications, you can take a look into it here:
https://github.com/iafonov/rails_ghetto

Hope it helps!
Igor

On Sat, Jul 21, 2012 at 8:09 PM, Wes Morgan < " target="_blank"> > wrote:
I'm trying to deploy a Rails app using the new application cookbook. According to the README, I'm supposed to declare a dependency on the application_rails cookbook in the metadata.rb, but that doesn't seem to exist. Earlier in the README, application_ruby is mentioned, so I switched it to that. Do we need a documentation fix there?

Anyway, I can't quite figure out how the rails-y portion of the cookbook is supposed to be invoked. Just declaring a "depends" line in metadata.rb doesn't actually run anything, does it?

I see in the examples that there is a rails do ... end block in the application's block. Is that what triggers it?

Does anyone have a working example of deploying a Rails app w/ the new application cookbook?

Wes




Archive powered by MHonArc 2.6.16.

§