magicmonkey 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/magic_monkey.rb +2 -2
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/magic_monkey.rb
CHANGED
@@ -65,9 +65,9 @@ module MagicMonkey
|
|
65
65
|
applications.each do |app_name|
|
66
66
|
if Conf[app_name]
|
67
67
|
commands = []
|
68
|
-
commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'"
|
68
|
+
commands << "source '#{Etc.getpwuid.dir}/.rvm/scripts/rvm'" if Conf[app_name][:ruby] != 'auto'
|
69
69
|
commands << "cd '#{Conf[app_name][:app_path]}'"
|
70
|
-
commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'"
|
70
|
+
commands << "rvm #{v ? 'use ' : ''}'#{Conf[app_name][:ruby]}'" if Conf[app_name][:ruby] != 'auto'
|
71
71
|
case Conf[app_name][:app_server]
|
72
72
|
when 'passenger'
|
73
73
|
commands << "passenger start -e production -p #{Conf[app_name][:port]} #{Conf[app_name][:app_server_options]} -d"
|