Ruby On Rails 6 With Windows Subsystem For Linux 2 And An Easy Speed Boost

preview_player
Показать описание
Commands are located down below, along with a blog post version of this tutorial. Hopefully this Ruby on Rails 6 installation guide helps you guys get an easy speed boost either by following the steps for the windows subsystem for Linux 2 setup or by moving your Rails location out of a mounted location and into its own folder structure.

Blog Post For This Tutorial:

---------------------------------------------
Recording Equipment Used In My Videos (Amazon Affiliate Links)
---------------------------------------------
Timestamps
0:00 Video Overview, Recap, & Intro
1:05 Installing Ruby Version Manager (RVM)
1:40 Installing Ruby 2.7.0
2:02 Installing NodeJS
2:24 Installing Ruby On Rails
2:54 Installing Yarn
3:30 Creating The Slow Rails Application
5:20 Creating The Fast Rails Application
7:25 Adding Visual Studio Code
7:50 Video Summary & Outro
_______________

The Commands In Gist Form:
The Articles:

The Commands:
7D2BAF1CF37B13E2069D6956105BD0E739499BDB

Restart terminal

rvm version

rvm get stable --autolibs=enable
rvm list known
rvm install ruby-2.7.0
rvm --default use ruby-2.7.0
ruby -v

sudo apt install -y nodejs
sudo apt install gcc g++ make

gem update --system
gem -v

gem install rails
rails -v

sudo apt update
sudo apt install yarn
yarn --version

rails new demoproject
cd demoproject
rails s
rails g scaffold post title body:text views:integer
rails db:migrate
rails s

cd /
sudo mkdir code
sudo chmod 777 code
cd code

rails new demoproject
cd demoproject
rails s
rails g scaffold post title body:text views:integer
rails db:migrate
rails s

Follow me on social media:

Join this channel to get access to perks:

#Deanin #Rails6 #20in20
Рекомендации по теме
Комментарии
Автор

Can i use postgres installed in windows in this rails app?

nv
Автор

OMG!!!! why am i just seeing this video now 😍😍😍 DUDE... that creating a code directory hack worked like a champ 😲 rails new went from 5 minutes to 30 seconds 🤯 rails is actually usable now

anthonypetruzzi
Автор



Might have accidentally posted this one without a thumbnail. Oops! I hope this helps at least someone. I know it's not really an installation guide, unless you count "Copy and paste this stuff" as a guide, but hopefully it helps someone get things working a bit more quickly than they're used to. I'm definitely thrilled that I can make videos a bit faster now!

Deanin
Автор

If pgsql is installed on my baseos (windows) and make a rails project in ubuntu terminal (rails new <app name> --database=postgresql) and do railsdb:migrate.
Will it access my baseos pg db or not?

AzharKalamazhar
Автор

If I store my project files in my Ubuntu user folder it should be just as fast right? Something like /home/USER/project

byverbel
Автор

I installed wsl2 with rails 5 and postgres 10. it was going very well until I gestore My db. The Ram fire until 98% ( i have 8gbs) Vm of wls 2 broken My PC.

hermesalexis
Автор

welcome back. I thought you don't create video anymore.

tienan
Автор

Isnt it easier and faster just to use virtual machine? Are there any big disadvantages of using linux VM-way?

arturdebicki