- From: AJ Christensen <
>
- To:
- Subject: [chef] Re: Re: Re: Rails 3 and ruby 1.9.2 application with chef
- Date: Wed, 25 Apr 2012 13:43:37 +1200
If you use omnibus to install chef, it's already being installed into
a ruby 1.9x embedded container.
I'd recommend using the ruby cookbook, and setting the attributes so
that it installs ruby1.9.x -- it'll end up in your standard system
location; then any other service you can deploy will use that ruby due
to it being in $PATH.
At Heavy Water, we have our continuous delivery platform build a Ruby
artefact for the architectures being used in the deployment with a
custom cookbook (instead of the opscode Ruby) to deploy that.
Eventually we may try to work in compatibility there.
We've had a little trouble with this route when you need to install
gems with gem_package into either VM, but it's easily worked around
with the gem_binary parameter.
Cheers,
--AJ
On 25 April 2012 13:23, Daniel Cukier
<
>
wrote:
>
Hi Wes! Thanks for you answer.
>
>
How to configure chef to use ruby 1.9.3 instead of 1.8.7?
>
>
>
On Tue, Apr 24, 2012 at 6:32 PM, Wes Morgan
>
<
>
>
wrote:
>
>
>
>
>
> On Apr 24, 2012, at 3:21 PM, Daniel Cukier wrote:
>
>
>
> I have some questions about chef and Rails3 applications:
>
>
>
> 1 - What is the best way to create a Rails 3 application server using
>
> chef?
>
>
>
> We've tried to use the application cookbook
>
> (https://github.com/opscode/cookbooks/tree/master/application), but it is
>
> not working. It creates the application in the rightdirectory, and it runs
>
> unicorn and listen on port 8080, but when I try to access it, it doesnt
>
> respond.
>
>
>
> 2 - As Rails 3 requires ruby >=1.9.2, how to configure the application
>
> cookbook to use it?
>
>
>
>
>
> Rails 3 requires ruby >= 1.8.7. So you don't strictly *need* 1.9.2. But if
>
> you can, I would recommend using 1.9.2 (1.9.3 is even better).
>
>
>
>
>
> http://edgeguides.rubyonrails.org/3_0_release_notes.html#rails-3-requires-at-least-ruby-1-8-7
>
>
>
>
>
> 3 - Is there any other working cookbook to use instead of application?
>
>
>
>
>
> Thanks a lot
>
>
>
> Daniel Cukier
>
>
>
>
>
>
>
>
--
>
Daniel Cukier
>
Software Artist
>
+55 11 9991-3913
>
Archive powered by MHonArc 2.6.16.