Skip to content

Instantly share code, notes, and snippets.

@Bill0412
Forked from imthatcarlos/instructions.txt
Created September 22, 2018 01:19
Show Gist options
  • Save Bill0412/9b482dfc24dc57147945902873b24281 to your computer and use it in GitHub Desktop.
Save Bill0412/9b482dfc24dc57147945902873b24281 to your computer and use it in GitHub Desktop.
Create a new rails application with a specific version
# make directory for new rails app
mkdir app
cd app
# specify ruby version
echo 2.3.1 > .ruby-version
# initialize bundler (creates Gemfile)
bundler init
# specify rails version in Gemfile
gem "rails", "4.2.5"
# create rails app using specified version, and overwrite current Gemfile
bundle exec rails new . --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment