Skip to content

Instantly share code, notes, and snippets.

@yakjuly
Forked from imthatcarlos/instructions.txt
Created December 26, 2017 18:03
Show Gist options
  • Save yakjuly/e22db7304bbeb32ba1ece97bc150831b to your computer and use it in GitHub Desktop.
Save yakjuly/e22db7304bbeb32ba1ece97bc150831b 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