rbfu | Minimal Ruby version management | Command Line Interface library
kandi X-RAY | rbfu Summary
kandi X-RAY | rbfu Summary
First and foremost, it supports an explicit invocation style that takes a Ruby version as a command line parameter or reads it from .ruby-version, if present:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of rbfu
rbfu Key Features
rbfu Examples and Code Snippets
Community Discussions
Trending Discussions on rbfu
QUESTION
What are the correct steps for changing the configuration of my project when change the ruby and rails version, using rmv.
For example, I have to change in deploy.rb set :rvm_ruby_version, '2.4.0@5.1'
, but what else?
I can't get Capistrano use the correct rvm gemset, and allways tries to bundle install
with the old rvm gemset
Do I have to change something in the production server? I think so, but in some order, before deploy and then after deploy some other changes...¿?
I have tried capistrano-rvm , rvm-capistrano, and finally rvm1-capistrano3
When I run cap production depoly, I get these errors, all arround "Could not determine which Ruby to use"
...ANSWER
Answered 2018-Oct-22 at 15:45In Rails.root create file with name .ruby-version and following content:
QUESTION
Trying to rvm use .
in order to follow the instructions in here in an attempt to fix my messed up configuration, I get the following message in console:
Unknown ruby interpreter version (do not know how to handle): RUBY_VERSION. Could not determine which Ruby to use; . should contain .rvmrc or .versions.conf or .ruby-version or .rbfu-version or .rbenv-version, or an appropriate line in Gemfile.
Which I guess refers to the variable RUBY_VERSION in the Gemfile:
...ANSWER
Answered 2017-Oct-31 at 16:03RUBY_VERSION should be a specific version string, like '2.4.2' (with the quotes).
However, if you don't particularly care which Ruby version you use, then you should be able to just remove the whole line and rvm will use the default.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install rbfu
Download/clone the rbfu code and run the install script: git clone git://github.com/hmans/rbfu.git cd rbfu ./install.sh This will copy the rbfu executable to /usr/local/bin. If you need to install rbfu to a different directory, you can supply the PREFIX environment variable, manually copy bin/rbfu to a directory of your choosing, or add the provided bin directory to your PATH. Either way, all you need to do is make rbfu available in your $PATH.
Add the following initialization line to a shell startup script of your choosing (eg. $HOME/.bash_profile): eval "$(rbfu --init --auto)" Or, if you don't want RVM-style automatic version switching (see below), leave out the --auto parameter: eval "$(rbfu --init)"
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page