mercredi 7 octobre 2015

Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2

When I try to enter the rails console I get the error Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2. But when I check the rbenv version and rails version I get 2.2.2. This happens in bash and zsh. I'm able to start the server via foreman with no problem.

console

➜  git:(antarr_development) ✗ rails c
Your Ruby version is 2.0.0, but your Gemfile specified 2.2.2
➜  git:(antarr_development) ✗ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin15]
➜  git:(antarr_development) ✗ rbenv local
2.2.2

~/.zshrc

# Path to your oh-my-zsh installation.
export ZSH=/Users/atbyrd/.oh-my-zsh
ZSH_THEME="robbyrussell"
COMPLETION_WAITING_DOTS="true"

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

# User configuration

export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# export MANPATH="/usr/local/man:$MANPATH"

source $ZSH/oh-my-zsh.sh

export RBENV_ROOT="$(brew --prefix rbenv)"
export GEM_HOME="$(brew --prefix)/opt/gems"
export GEM_PATH="$(brew --prefix)/opt/gems"
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
alias fs="foreman start"

Aucun commentaire:

Enregistrer un commentaire