Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Last active June 21, 2024 20:17
Show Gist options
  • 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 3.3.2 > .ruby-version
rbenv install 3.3.2
bundler init
echo "source 'https://rubygems.org'" > Gemfile
echo "ruby '3.3.2'" >> Gemfile
echo "gem 'rails', '~> 7.1', '>= 7.1.3.4'" >> 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