engineyard-serverside 2.6.7.pre1 → 2.6.7.pre2
Sign up to get free protection for your applications and to get access to all the features.
@@ -71,13 +71,13 @@ module EY
|
|
71
71
|
public_system_symlink_warning
|
72
72
|
@up = true
|
73
73
|
maintenance_page_html = File.read(source_path)
|
74
|
-
if
|
75
|
-
#if the html contains an aprostophe it's probably custom coming from your app so will work on app slaves even if the serverside versions mistmatch
|
76
|
-
run "cp #{source_path} #{enabled_maintenance_page_pathname}"
|
77
|
-
else
|
74
|
+
if source_path == EY::Serverside::Paths::DEFAULT_MAINTENANCE_PAGE
|
78
75
|
#run fans out to all app servers but the serverside version is only isntalled on the server being used to deploy
|
79
76
|
#so if the serveside version being used isn't installed on a given app server the cp command would fail, but this echo will still work
|
80
77
|
run "echo '#{maintenance_page_html}' > #{enabled_maintenance_page_pathname}"
|
78
|
+
else
|
79
|
+
#since other possible paths are in your app, cp should work
|
80
|
+
run "cp #{source_path} #{enabled_maintenance_page_pathname}"
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|