pauldowman-ec2onrails 0.9.10.3 → 0.9.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/ec2onrails.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ec2onrails}
8
- s.version = "0.9.10.3"
8
+ s.version = "0.9.10.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Paul Dowman, Adam Greene"]
12
- s.date = %q{2009-08-16}
12
+ s.date = %q{2009-09-16}
13
13
  s.description = %q{Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.}
14
14
  s.email = %q{paul@pauldowman.com}
15
15
  s.extra_rdoc_files = ["CHANGELOG", "lib/ec2onrails/capistrano_utils.rb", "lib/ec2onrails/recipes/db.rb", "lib/ec2onrails/recipes/deploy.rb", "lib/ec2onrails/recipes/server.rb", "lib/ec2onrails/recipes.rb", "lib/ec2onrails/version.rb", "lib/ec2onrails.rb", "README.textile"]
@@ -66,8 +66,8 @@ Capistrano::Configuration.instance.load do
66
66
  # The best solution is to use an after hook on "deploy:symlink" or "deploy:update" instead of on
67
67
  # "deploy:update_code"
68
68
  on :load do
69
- before "deploy:symlink", "ec2onrails:server:run_rails_rake_gems_install"
70
69
  before "deploy:symlink", "ec2onrails:server:install_system_files"
70
+ after "deploy:finalize_update", "ec2onrails:server:run_rails_rake_gems_install"
71
71
  end
72
72
 
73
73
 
@@ -18,7 +18,7 @@
18
18
 
19
19
  module Ec2onrails #:nodoc:
20
20
  module VERSION #:nodoc:
21
- STRING = "0.9.10.3"
21
+ STRING = "0.9.10.4"
22
22
 
23
23
  AMI_ID_32_BIT_US = 'ami-xx'
24
24
  AMI_ID_64_BIT_US = 'ami-xx'
@@ -76,7 +76,7 @@ query_cache_size = 64M
76
76
  # Here you can see queries with especially long duration
77
77
  log_slow_queries = /mnt/log/mysql/mysql-slow.log
78
78
  long_query_time = 1
79
- log-queries-not-using-indexes
79
+ # log-queries-not-using-indexes
80
80
  #
81
81
  # The following can be used as easy to replay backup logs or for replication.
82
82
  #server-id = 1
@@ -109,6 +109,13 @@ http {
109
109
  if ($request_filename ~* \.(css|jpg|gif|png)$) {
110
110
  break;
111
111
  }
112
+
113
+ # this allows a url /warmup that can be used to cause Passenger to
114
+ # restart after restart.txt has been touched, even if the maintenance
115
+ # page is up.
116
+ if ($request_filename ~* \\/warmup.*$) {
117
+ break;
118
+ }
112
119
 
113
120
  # this rewrites all the requests to the maintenance.html
114
121
  # page if it exists in the doc root. This is for capistrano's
@@ -24,7 +24,7 @@ exit unless File.exists?("/mnt/app/current")
24
24
  require "rubygems"
25
25
  require "optiflag"
26
26
  require "fileutils"
27
- require 'EC2'
27
+ require "AWS"
28
28
  require "#{File.dirname(__FILE__)}/../lib/mysql_helper"
29
29
  require "#{File.dirname(__FILE__)}/../lib/s3_helper"
30
30
  require "#{File.dirname(__FILE__)}/../lib/aws_helper"
@@ -32,7 +32,7 @@ require "#{File.dirname(__FILE__)}/../lib/roles_helper"
32
32
 
33
33
  require "#{File.dirname(__FILE__)}/../lib/utils"
34
34
 
35
- # Only run if this instance is the db_pimrary
35
+ # Only run if this instance is the db_primary
36
36
  # The original code would run on any instance that had /etc/init.d/mysql
37
37
  # Which was pretty much all instances no matter what role
38
38
  include Ec2onrails::RolesHelper
@@ -55,7 +55,7 @@ if File.exists?("/etc/mysql/conf.d/mysql-ec2-ebs.cnf") && !ARGV.flags.no_ebs
55
55
 
56
56
  @aws = Ec2onrails::AwsHelper.new
57
57
  vols = YAML::load(File.read("/etc/ec2onrails/ebs_info.yml"))
58
- ec2 = EC2::Base.new( :access_key_id => @aws.aws_access_key, :secret_access_key => @aws.aws_secret_access_key )
58
+ ec2 = AWS::EC2::Base.new( :access_key_id => @aws.aws_access_key, :secret_access_key => @aws.aws_secret_access_key )
59
59
 
60
60
  #lets make sure we have space: AMAZON puts a 500 limit on the number of snapshots
61
61
  snaps = ec2.describe_snapshots['snapshotSet']['item'] rescue nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pauldowman-ec2onrails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10.3
4
+ version: 0.9.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Dowman, Adam Greene
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-16 00:00:00 -07:00
12
+ date: 2009-09-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -231,7 +231,6 @@ files:
231
231
  - TODO
232
232
  has_rdoc: false
233
233
  homepage: http://ec2onrails.rubyforge.org
234
- licenses:
235
234
  post_install_message:
236
235
  rdoc_options:
237
236
  - --line-numbers
@@ -257,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
256
  requirements: []
258
257
 
259
258
  rubyforge_project: ec2onrails
260
- rubygems_version: 1.3.5
259
+ rubygems_version: 1.2.0
261
260
  signing_key:
262
261
  specification_version: 3
263
262
  summary: Client-side libraries (Capistrano tasks) for managing and deploying to EC2 on Rails servers.