From the course: Installing and Running Ruby on Rails 6

Running Ruby on Rails on Windows - Ruby on Rails Tutorial

From the course: Installing and Running Ruby on Rails 6

Start my 1-month free trial

Running Ruby on Rails on Windows

- [Instructor] In this chapter, we're going to learn how to install Ruby on Rails on Windows. Before we dive in, you need to know that an overwhelming majority of Ruby on Rails developers use macOS for their development computer, and deploy their projects to a Linux server. Both of those are Unix based operating systems. Using Ruby on Rails with Windows has always been possible, but it's often been a frustrating experience. And because most developers aren't using it, there's less help available if you get stuck. And, there's also just some libraries and Ruby Gems that won't work outside of Unix. If you want to develop with Windows, then you have two options. First, there's the Ruby Installer. This is the traditional way of using Ruby on Rails with Windows. You can visit rubyinstaller.org, and download it. Then you can install the Ruby gem for rails, you can install the MySQL database, and the MySQL2 gem to allow Ruby to talk to that database. Now, I'm not going to walk you through those steps. If you need them, they're shown in "Installing and Running "Ruby on Rails 5: Windows," and you can get them there. If you're using Windows before Windows version 10, you will need to use the Ruby Installer. However, if you're using Windows 10, then you have another option. Microsoft added WSL, or Windows Subsystem for Linux. And it runs Linux inside Windows. That makes it almost exactly like the experience of Mac users. And similar to the Linux servers where you'll eventually deploy your project. And that's a much better experience. The only downside is that this is a newer, more experimental feature. Its been well used over the last year, and I feel comfortable recommending it to you. Because it will be a better experience. But just keep in mind that you may still hit some bumps along the way. It's not the well worn path that you have when you're working with a Mac.

Contents