Last active
May 20, 2021 06:08
-
-
Save Deanout/adcf3e7e129636cf845569d5d54641bf to your computer and use it in GitHub Desktop.
Ruby on Rails 6 Setup Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Commands from http://howtoforge.com/tutorial/ubuntu-ruby-on-rails | |
Yarn from https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/ | |
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 \ | |
7D2BAF1CF37B13E2069D6956105BD0E739499BDB | |
curl -sSL https://get.rvm.io | bash -s stable --ruby | |
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 | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
sudo apt install -y nodejs | |
sudo apt install gcc g++ make | |
gem update --system | |
gem -v | |
gem install rails | |
rails -v | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment