magic_recipes 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,8 @@
|
|
1
1
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
2
2
|
# Magic - Recipes
|
3
3
|
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
4
|
-
# Usage:
|
5
|
-
# magic_recipes :rvm, :nginx, :private_pub, :thin
|
6
|
-
# available:
|
7
|
-
# :rvm, :rbenv, :nginx, :private_pub, :thin, :passenger, :unicorn, :assets, :gems
|
8
|
-
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
9
4
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
server "0.0.0.0", :web, :app, :db, :primary => true
|
5
|
+
server "0.0.0.0", :web, :app, :db, :primary => true
|
14
6
|
|
15
7
|
set :user, "deploy" #=> ssh-user
|
16
8
|
set :password, "password" #=> sudo-pwd
|
@@ -66,3 +58,14 @@ set :rails_env, "production" #=> Rails environmen
|
|
66
58
|
# => set :keep_releases, 3
|
67
59
|
# => after "deploy:restart", "deploy:cleanup"
|
68
60
|
|
61
|
+
|
62
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
63
|
+
# Usage:
|
64
|
+
# magic_recipes :rvm, :nginx, :private_pub, :thin
|
65
|
+
# available:
|
66
|
+
# :rvm, :rbenv, :nginx, :private_pub, :thin, :passenger, :unicorn, :assets, :gems
|
67
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
68
|
+
|
69
|
+
magic_recipes :rvm, :nginx, :private_pub, :thin
|
70
|
+
|
71
|
+
|
data/lib/magic_recipes/rvm.rb
CHANGED
@@ -21,7 +21,7 @@ module MagicRecipes
|
|
21
21
|
set :remote_bin_path, "#{rvm_path}/gems/ruby-#{rvm_ruby}-#{rvm_patch}/bin/"
|
22
22
|
|
23
23
|
set :default_environment, {
|
24
|
-
'PATH' => "#{rvm_path}/gems/ruby/1.9.1/bin:#{rvm_bin_path}/bin:$PATH",
|
24
|
+
'PATH' => "#{rvm_path}/gems/ruby/1.9.1/bin:#{rvm_bin_path}/bin:#{remote_bin_path}:$PATH",
|
25
25
|
'RUBY_VERSION' => "#{rvm_ruby}",
|
26
26
|
'GEM_HOME' => "#{rvm_path}/gems/#{rvm_ruby_string}",
|
27
27
|
'GEM_PATH' => "#{rvm_path}/gems/#{rvm_ruby_string}",
|