Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Last active July 11, 2018 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darrenterhune/872821f465a97776791edf6b232525c3 to your computer and use it in GitHub Desktop.
Save darrenterhune/872821f465a97776791edf6b232525c3 to your computer and use it in GitHub Desktop.
Installing rails without the initial gem install rails

Installing Rails w/o gem install

mkdir -p ~/Sites/myapp
cd ~/Sites/myapp
echo 2.4.2 > .ruby-version
rbenv install 2.4.2
bundler init
echo "source 'https://rubygems.org'" > Gemfile
echo "ruby '2.4.2'" >> Gemfile
echo "gem 'rails', '~> 5.2'" >> Gemfile
bundle install
bundle exec rails new . --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment