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 maintenance_page_html.index("'")
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
 
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '2.6.7.pre1'
3
+ VERSION = '2.6.7.pre2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.7.pre1
4
+ version: 2.6.7.pre2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: