A
A
Albert Tobacco2015-05-18 16:43:33
Ruby on Rails
Albert Tobacco, 2015-05-18 16:43:33

How to deploy an old Rails application locally?

I downloaded an old Rails readmine. When I run bundle install I get errors like

Gem::InstallError: nokogiri requires Ruby version >= 1.9.2.
An error occurred while installing nokogiri (1.6.6.2), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.6.2'` succeeds before bundling.

Ruby live 1.8.7
Rails 3.2.13
How to install all the gems with respect to the required version without pain?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey, 2015-05-18
@fuCtor

It is fashionable to pick up Gemfile.lock from the server, put it locally, execute bundle install and hope that all packages are still available.

I
Infinite, 2015-05-18
@Infinite

Recently I took a steam bath with ruby ​​1.8.7 and rails 2.3.16, everything worked out with Gemfile.lock, I tried to hardcode the versions in the Gemfile - it also helped, but then there were problems with the deployment. Nokogiri (1.5.4) everything is ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question