/ / Konfigurowanie skrzynki dla deweloperów Rails - ruby-on-rails, ruby, vagrant, rbenv

Konfigurowanie skrzynki deweloperskiej dla Railsów - ruby-rails, ruby, vagrant, rbenv

W Vagrancie ustawiam pole rozwojowe Rails przy użyciu Ansible. Wszystko jest skonfigurowane i użyłem Rbenv do ułatwienia instalacji Ruby. Zainstalowałem Ruby 2.1.2

Kiedy biegnę rbenv global dostaję 2.1.2. Po przejściu do katalogu aplikacji i uruchomieniu rbenv local dostaję 2.1.2 i kiedy biegnę ruby -v dostaję 2.1.2. Mój gemfile również stwierdza 2.1.2

Jednak kiedy biegnę bundle install, Dostaję:

Twoja wersja Ruby to 1.8.7, ale twój Gemfile podał 2.1.2

Wszelkie pomysły, jak to rozwiązać?

Odpowiedzi:

0 dla odpowiedzi № 1

musisz zainstalować klejnot pakietu za pomocą rbenv gem dowództwo:

rbenv global 2.1.2

# ensure all shims for current ruby version are there
rbenv rehash

gem install bundler

# rehash again to make sure you get the `bundler` command from `rbenv`
rbenv rehash

bundle install

Mam nadzieję że to pomoże