Andrea,Wow, thanks, I've totally missed that I can do it like that. I thought that there maybe a better way to do it but totally missed most obvious way.четверг, 16 августа 2012 г. в 11:38, Andrea Campi написал:
Igor,On Thu, Aug 16, 2012 at 9:36 AM, Igor Afonov < " target="_blank"> > wrote:Hi Marcelo,I've already mentioned in this list but I have a cookbook which is basicallywhat you need. It manages deployment of several very similar railsapplications. As Andrea mentioned if you have different applications it isbetter to have a separate cookbooks for them. But for your case here is thecookbook - https://github.com/iafonov/rails_ghetto. I'm 100% sure that you'dhave to change it for your needs. I'm not a big fan of data bags (thiscookbook was initially created for chef-solo) but if you are - you can quiteeasily alter it to use data bags instead of attributes.I had a look at rails_ghetto some time ago and I like it. If anything,it shows a big benefit of the "new" application cookbook: you wereable to reuse its LWRPs to add functionality on top.One question though: how come you rolled your own nginx_sites_enableinstead of using application_nginx? Any missing functionality there?At a cursory glance it looks like a perfect match, you just need tospecify your own template.I.e. in your recipes/deploy.rb:rails_applications do |name, app|application name do…nginx dotemplate "nginx_site.erb"cookbook_name "rails_ghetto"endendendAnd you'd be pretty much set.Did you try that and hit any roadblock?Andrea
Archive powered by MHonArc 2.6.16.