Merge pull request #1841 from CiderCooler/master

Clarify commands around rvm
This commit is contained in:
Robin Ward 2014-01-21 07:07:20 -08:00
commit 2684f20ada
1 changed files with 17 additions and 4 deletions

View File

@ -121,9 +121,13 @@ Install RVM
# As 'discourse'
# Install RVM
\curl -s -S -L https://get.rvm.io | bash -s stable
\curl -s -S -L https://get.rvm.io | bash -s stable
# Refresh your profile
. ~/.rvm/scripts/rvm
Install missing packages
# Install necessary packages for building ruby (this will only work if
# you've given discourse sudo permissions, which is *not* the default)
# rvm requirements
@ -131,12 +135,17 @@ Install RVM
# NOTE: rvm will tell you which packages you (or your sysadmin) need
# to install during this step. As discourse does not have sudo
# permissions (likely the case), run:
rvm --autolibs=read-fail requirements
# repeat until it fully executes
Continue with Discourse installation
# For instance, if prompted with `libreadline6-dev libsqlite3-dev sqlite3 autoconf' etc
# Install the missing packages with this command, run as your user:
# sudo apt-get install libreadline6-dev libsqlite3-dev sqlite3 autoconf
# Repeat the autolibs test until you see "Requirements installation successful"
Build and install ruby
# Build and install ruby
rvm install 2.0.0
# Use installed ruby as default
@ -145,7 +154,11 @@ Continue with Discourse installation
# Install bundler
gem install bundler
Continue with Discourse installation
# Pull down the latest code
# Now would be a great time to consider [forking](https://help.github.com/articles/fork-a-repo), if want to work from your own copy of discourse
#If you don't need to customize your installation, and want less hassle upgrading clone from Discourse's repo
git clone git://github.com/discourse/discourse.git /var/www/discourse
cd /var/www/discourse