Skip to content

Instantly share code, notes, and snippets.

@darrenterhune
Last active February 24, 2025 20:48
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.6 > .ruby-version
rbenv install 3.3.6
bundler init
echo "source 'https://rubygems.org'" > Gemfile
echo "ruby '3.3.6'" >> Gemfile
echo "gem 'rails', '~> 8.0', '>= 8.0.1'" >> Gemfile
bundle install
bundle exec rails new . --force -d postgresql --css=tailwind -T --skip-test-unit 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment