Giter VIP home page Giter VIP logo

Comments (6)

zzet avatar zzet commented on July 19, 2024

@thom-nic can you show content of your .ruby-version file?

from rbenv.

thom-nic avatar thom-nic commented on July 19, 2024

It's just a single line:

2.1.3

Rbenv already understands how to process it, it's sort of a generic .rbenv-version file. I just go to the root directory of your project and do rbenv install. rbenv also knows which ruby version to activate when running project executables (ruby, rake) by looking at the same file.

from rbenv.

zzet avatar zzet commented on July 19, 2024

@thom-nic do you need to override ruby version from default 2.2.0 to your 2.1.3?

from rbenv.

zzet avatar zzet commented on July 19, 2024

As can you see in Readme - you can setup any ruby with this role.

- hosts: all
  vars:
    rbenv:
      env: user
      version: v0.4.0
      ruby_version: 2.0.0-p353
  roles:
    - role: zzet.rbenv
      rbenv_users:
        - user

as example

from rbenv.

thom-nic avatar thom-nic commented on July 19, 2024

Yeah I understand I can set it up that way but I still have to specify the ruby version there in addition to what's in my project .ruby-version. rbenv's ruby shim will throw an error if what's in .ruby-version is different from what's defined in the ansible vars. Trying to keep it DRY and reduce the chance for errors.

Simply not installing a system ruby until the app is installed would fix that. I mean I can run rbenv install regardless after my app is installed and to ensure the proper ruby version is installed for my app but it will increase the build/ deploy time if two different rubies get installed.

from rbenv.

iangreenleaf avatar iangreenleaf commented on July 19, 2024

👍 it would be great to have an option to skip installing a Ruby and just set up rbenv instead.

from rbenv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.