From f5f00172dde8a2058c04173adad4130bdf644a11 Mon Sep 17 00:00:00 2001 From: PineWong Date: Mon, 8 Aug 2016 13:45:12 +0000 Subject: [PATCH 1/2] add Rbenv and RVM notes --- docs/getting_started.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/getting_started.md b/docs/getting_started.md index b7810507..3cb77fe5 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -30,6 +30,28 @@ set :domain, 'your.server.com' set :deploy_to, '/var/www/flipstack.com' ... ``` +**Notes:** You may be use the ruby version tool(Rbenv or RVM) to manage ruby and gem, if you use one of than, don't forget uncomment these setting: +``` +... +require 'mina/bundler' +require 'mina/rails' +require 'mina/git' +# require 'mina/rbenv' # for rbenv support. (http://rbenv.org) +# require 'mina/rvm' # for rvm support. (http://rvm.io) +... +``` +``` ruby +... +task :environment do + # If you're using rbenv, use this to load the rbenv environment. + # Be sure to commit your .ruby-version or .rbenv-version to your repository. + # invoke :'rbenv:load' + + # For those using RVM, use this to load an RVM version@gemset. + # invoke :'rvm:use[ruby-1.9.3-p125@default]' +end +... +``` ### Step 2: Run 'mina setup' From 1ca3c577e48e869655d33e7feda5589ad943a2f8 Mon Sep 17 00:00:00 2001 From: PineWong Date: Tue, 9 Aug 2016 05:50:56 +0000 Subject: [PATCH 2/2] fixed #412 --- docs/getting_started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index 3cb77fe5..9e32ca98 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -30,7 +30,7 @@ set :domain, 'your.server.com' set :deploy_to, '/var/www/flipstack.com' ... ``` -**Notes:** You may be use the ruby version tool(Rbenv or RVM) to manage ruby and gem, if you use one of than, don't forget uncomment these setting: +**Notes:** You may be using a ruby versioning tool (rbenv or RVM) to manage ruby and gems. If you are using one of them, don't forget to uncomment these settings: ``` ... require 'mina/bundler'