Skip to content

Instantly share code, notes, and snippets.

@blift
Last active October 14, 2020 10:08
Show Gist options
  • Save blift/396206ea916f8b6c7815ca61a313b871 to your computer and use it in GitHub Desktop.
Save blift/396206ea916f8b6c7815ca61a313b871 to your computer and use it in GitHub Desktop.
Ruby on Rails cloned project from github with RVM on Mac Os
## 1. Clone repo from github
## 2. Install RVM without disable IPv6
gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
## 3. Install stable version ruby via RVM
\curl -sSL https://get.rvm.io | bash -s stable --ruby
## 3.1 run command - CHANGE ***USERNAME*** to your username
source /Users/***USERNAME***/.rvm/scripts/rvm
## 4. Check the RVM working and the correct version is installed
rvm list
## 5. Install rails with sudo
sudo gem install rails
## 6. Install budler
gem install bundler
## 7. Create database schema // check which db is using in /db folder and /config/database.yml
rake db:create
rake db:migrate
## 8. run rails server
rails s
// or environments
rails s -e development
// or environments with different port on localhost
rails s -p 3001 -e development
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment