Created
December 4, 2016 05:04
-
-
Save imthatcarlos/798653d14048410bdf713f5acc8bc082 to your computer and use it in GitHub Desktop.
Create a new rails application with a specific version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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