blue 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blue/version.rb +1 -1
- data/lib/blue.rb +2 -2
- data/lib/capistrano/deploy.rb +3 -1
- metadata +3 -3
data/lib/blue/version.rb
CHANGED
data/lib/blue.rb
CHANGED
@@ -37,11 +37,11 @@ module Blue
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.logs_path
|
40
|
-
@@logs_path ||= shared_path
|
40
|
+
@@logs_path ||= shared_path + "logs/"
|
41
41
|
end
|
42
42
|
|
43
43
|
def self.pids_path
|
44
|
-
@@pids_path ||= shared_path
|
44
|
+
@@pids_path ||= shared_path + "pids/"
|
45
45
|
end
|
46
46
|
|
47
47
|
@@boxes = []
|
data/lib/capistrano/deploy.rb
CHANGED
@@ -7,7 +7,9 @@ module Blue
|
|
7
7
|
desc 'Apply the Blue manifest for this application'
|
8
8
|
task :apply_manifest, :except => { :no_release => true } do
|
9
9
|
current_host = capture("echo $CAPISTRANO:HOST$").strip.gsub('.', '_')
|
10
|
-
run "cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} sudo shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb"
|
10
|
+
# run "cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} sudo shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb"
|
11
|
+
# run "sudo su - 'cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb'"
|
12
|
+
sudo "cd #{latest_release} && RAILS_ROOT=#{latest_release} RAILS_ENV=#{Blue.env} shadow_puppet #{latest_release}/config/blue/boxes/#{Blue.env}/#{current_host}.rb"
|
11
13
|
end
|
12
14
|
|
13
15
|
task :verify_db do
|
metadata
CHANGED