Back to journal
ruby MAY 19 · 2020

Installing and Running Ruby with Jekyll on Visual Studio Codespaces

So ruby was not working out of the box, but I wanted to build and test my Jekyll blog directly in Visual Studio Codespaces. After some experimentation, this is what I had to run in the terminal to get everything installed:

sudo apt-get install ruby
sudo apt-get install ruby-bundler
sudo gem install bundler
sudo gem install rubygems-update
update_rubygems
sudo gem update --system
sudo apt-get install ruby-dev
sudo gem install eventmachine -v '1.2.7'

Visual Studio Codespaces - running Jekyll and Ruby

After that your environment should be ready for Jekyll. Then install the bundles, and start Jekyll:

bundle install 
bundle exec jekyll serve

After that it is running, and you can use our other post on port forwarding from Visual Studio Codespaces to access it in your browser.

Follow Brian Porter on LinkedIn →
← Previous Next →
Brian Porter

Written by

poornerd

CTO at an automotive data company in Munich. Co-founder of SiteForce AG. Four decades writing software and shipping production systems.

Keep reading

Related essays