avp
avp

Reputation: 391

How to get old Jekyll site working on localhost

Several years ago, I built a site in Jekyll. We're redoing the site, so I needed to set up a new folder. I used rbenv to get an updated Ruby version (3.0), and I've got the new Jekyll site up and running on localhost.

However, I can no longer access my old Jekyll site (I think I may have updated my gems globally instead of locally - oops!). Typing jekyll serve into the terminal tells me that I'm missing bundler 1.12.5, as required by my gemfile.

Trying to install that bundler returns the following:

Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/specs.4.8.gz)".

My local version of Ruby is 2.0.
The error is the same under 2.0 and 3.0.
Gem version: 2.0.14.

Installing webrick did not resolve the problem, and according to the troubleshooting guide on this page, it's not an SSL cert or TLS issue (but I could be wrong on that).

I could really use some help in getting the old site running on my localhost again! Any suggestions?

Thank you!

Upvotes: 0

Views: 272

Answers (1)

Brad West
Brad West

Reputation: 969

I think you have two options:

Option 1:

Delete your Gemfile.lock and run bundle (If that gives you errors try bundle install && bundle update). This will build the old site with the newest version of the Gems.

Option 2:

Use a Ruby version manager (I like rbenv). Install the old Ruby version in the project directory (using a .ruby-version file).

Upvotes: 1

Related Questions