Skip to content

Commit 25a7345

Browse files
authored
Merge pull request #412 from PineWong/master
add Rbenv and RVM notes
2 parents 2818e6e + 1ca3c57 commit 25a7345

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/getting_started.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,28 @@ set :domain, 'your.server.com'
3030
set :deploy_to, '/var/www/flipstack.com'
3131
...
3232
```
33+
**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:
34+
```
35+
...
36+
require 'mina/bundler'
37+
require 'mina/rails'
38+
require 'mina/git'
39+
# require 'mina/rbenv' # for rbenv support. (http://rbenv.org)
40+
# require 'mina/rvm' # for rvm support. (http://rvm.io)
41+
...
42+
```
43+
``` ruby
44+
...
45+
task :environment do
46+
# If you're using rbenv, use this to load the rbenv environment.
47+
# Be sure to commit your .ruby-version or .rbenv-version to your repository.
48+
# invoke :'rbenv:load'
49+
50+
# For those using RVM, use this to load an RVM version@gemset.
51+
# invoke :'rvm:use[ruby-1.9.3-p125@default]'
52+
end
53+
...
54+
```
3355

3456
### Step 2: Run 'mina setup'
3557

0 commit comments

Comments
 (0)