Ruby on Rails Tuesday, September 12, 2017

If you are in the directory containing the application, you can use the rbenv local command to get and set the ruby version to use within the app.

rbenv local 3.2.1

will set the ruby version. It does this by creating or modifying a .ruby-version file in the application root.

Walter

> On Sep 12, 2017, at 3:25 PM, Ben Edwards <login@funkytwig.com> wrote:
>
> Hi, ive managed to get unicorn/nginx working (using https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-unicorn-and-nginx-on-ubuntu-14-04) and i am using rbenv. The setup used a .rbenv-vars configuration file in the ruby app directory. what I cant figure out is how to specify what version of ruby to tell it to use. Ime ding this on my dev box, where I only have one version but when I put it on prod they have several so I need to specify which to use.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/15d10ba9-f588-43ee-8184-cc27aa39f3f1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CE3988C3-D52C-4F10-9677-8556F781CE1D%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment