Created
June 1, 2013 19:10
-
-
Save sionc/5691399 to your computer and use it in GitHub Desktop.
Instructions to install rails 4.0 and ruby 2.0 to create a new web app
This file contains hidden or 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
# Install openssl to avoid getting an openssl error while creating a new app | |
# Check out http://goo.gl/HapK4 for more details | |
$ rvm pkg install openssl | |
$ rvm pkg install iconv | |
# Install ruby 2.0 using rvm | |
$ rvm install ruby-2.0.0-p195 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr | |
# Set ruby 2.0 as default | |
$ rvm use ruby-2.0.0-p195 --default | |
# Install rails | |
$ gem install rails --version 4.0.0.rc1 --no-ri --no-rdoc | |
# Create new rails app | |
$ rails new sample_app | |
# Open the app directory | |
$ cd sample_app | |
# Run db migrate | |
$ rake db:migrate | |
# Start the server | |
$ rails s | |
# You should see the default rails page when you go to http://localhost:3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment