mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Clarify commands around rvm
This commit is contained in:
parent
8c29ed870e
commit
fee8c6a460
1 changed files with 17 additions and 4 deletions
|
@ -122,9 +122,13 @@ Install RVM
|
||||||
|
|
||||||
# As 'discourse'
|
# As 'discourse'
|
||||||
# Install RVM
|
# 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
|
. ~/.rvm/scripts/rvm
|
||||||
|
|
||||||
|
Install missing packages
|
||||||
|
|
||||||
# Install necessary packages for building ruby (this will only work if
|
# Install necessary packages for building ruby (this will only work if
|
||||||
# you've given discourse sudo permissions, which is *not* the default)
|
# you've given discourse sudo permissions, which is *not* the default)
|
||||||
# rvm requirements
|
# rvm requirements
|
||||||
|
@ -132,12 +136,17 @@ Install RVM
|
||||||
# NOTE: rvm will tell you which packages you (or your sysadmin) need
|
# NOTE: rvm will tell you which packages you (or your sysadmin) need
|
||||||
# to install during this step. As discourse does not have sudo
|
# to install during this step. As discourse does not have sudo
|
||||||
# permissions (likely the case), run:
|
# permissions (likely the case), run:
|
||||||
|
|
||||||
rvm --autolibs=read-fail requirements
|
rvm --autolibs=read-fail requirements
|
||||||
# repeat until it fully executes
|
|
||||||
|
|
||||||
Continue with Discourse installation
|
# If prompted with `libreadline6-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake bison pkg-config libffi-dev' etc
|
||||||
|
# Fix with this command, run as your user:
|
||||||
|
# sudo apt-get install -dev libreadline6-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake bison pkg-config libffi-dev
|
||||||
|
# repeat the autolibs test until "Requirements installation successful"
|
||||||
|
|
||||||
|
|
||||||
|
Build and install ruby
|
||||||
|
|
||||||
# Build and install ruby
|
|
||||||
rvm install 2.0.0
|
rvm install 2.0.0
|
||||||
|
|
||||||
# Use installed ruby as default
|
# Use installed ruby as default
|
||||||
|
@ -146,7 +155,11 @@ Continue with Discourse installation
|
||||||
# Install bundler
|
# Install bundler
|
||||||
gem install bundler
|
gem install bundler
|
||||||
|
|
||||||
|
Continue with Discourse installation
|
||||||
|
|
||||||
# Pull down the latest code
|
# 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
|
git clone git://github.com/discourse/discourse.git /var/www/discourse
|
||||||
cd /var/www/discourse
|
cd /var/www/discourse
|
||||||
git checkout master
|
git checkout master
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue