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
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
-
-
-
-
Running Ruby on Rails on Windows1m 49s
-
Enable Windows subsystem for Linux2m 13s
-
Install Linux on Windows4m 11s
-
Install Ruby on Windows for a Rails project9m 15s
-
Install Ruby on Rails on Windows2m 13s
-
Install MySQL on Windows for a project database6m 23s
-
Install MySQL Ruby gems on Windows1m 21s
-
Install JavaScript tools for Ruby on Rails5m 27s
-
Using the web server on Windows1m 28s
-
Choosing a text editor on Windows for Rails development3m 31s
-
-
-