Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 11, 2010
  1. Some small README fixes.

    authored
  2. Ensure log rotation doesn't fail if nginx isn't running (i.e. on an i…

    authored
    …nstance not in the web role)
Commits on Nov 2, 2009
Commits on Oct 29, 2009
  1. Set varnish's first_byte_timeout to 60 seconds (which is really long …

    authored
    …but it's not up to EC2 on Rails to enforce good performance within the Rails app).
Commits on Oct 25, 2009
Commits on Oct 23, 2009
  1. Use varnish's round-robin director instead of random director to avoi…

    authored
    …d getting 503 errors when some (but not all) back-ends are down. (The random director doesn't necessarily try all back-ends, even if retries is set >= than the number of back-ends.)
    
    BTW this is only for balancing between back-end nginx servers and there's no problem doing round-robin here, the web servers themselves are still using Passenger's global queueing to balance between the Rails back-ends so there is no issue with one slow request holding up all the others.
  2. Fixed a typo.

    authored
  3. Don't try to install rails each time setup is run because the gem com…

    authored
    …mand isn't very smart and it re-installs the gem even if it's already installed, which can be very slow.
Commits on Oct 22, 2009
  1. Don't do init_backup every time db:create is run because it might be …

    authored
    …slow if there is a large database that already exists. This matters especially after changing the running instances (e.g. adding more app servers) because when you do ec2onrails:setup it will run db:create (harmless) on the existing db.
    
    Added a TODO in create_database to do the backup then, but first we need to check for the existence of the db and exit if it exists.
  2. Renamed gem to ec2onrails-experimental so it can be published without…

    authored
    … causing existing users to get it automatically when they upgrade.
  3. Cleaned up the before/after hooks and cap tasks a bit:

    authored
    1. Stop using deploy:cold
    2. Removed the db:optimize hook (if it should be run on setup then it should be part of the ec2onrails:setup task, but it's untested right now and I'm reluctant to add it to the default setup until someone can confirm that it works)
    3. run ec2onrails:db:init_backup after creating the db
    4. removed the add_gem_sources task, gem dependencies in recent versions of Rails can specify a source
    5. purge the proxy cache after redeploying
  4. Merge branch 'experimental' into wip-jeweller

    authored
    * experimental:
      Restart god after changing RAILS_ENV because god stores the value of RAILS_ENV and uses it in notifications.
  5. Restart god after changing RAILS_ENV because god stores the value of …

    authored
    …RAILS_ENV and uses it in notifications.
  6. Moved files so that they're clearly related to the gem or to the serv…

    authored
    …er. We can do this now that we're no longer using GitHub to build the gem (GitHub's gem builder expected the gem files to be at the root).
  7. Merge branch 'experimental' into wip-jeweller

    authored
    * experimental:
      Removed unnecessary semicolon.
Commits on Oct 20, 2009
  1. Converted to jeweler for gem building which allowed removal of gem ar…

    authored
    …tifacts (gemspec, Manifest, etc) and custom rake tasks to create those files.
Commits on Oct 19, 2009
  1. Load the config file from /mnt/app/current/config/... instead of /etc…

    authored
    …/ec2onrails. Also renamed method.
  2. Make sure rake gems:install doesn't get run when we're first deployin…

    authored
    …g the code before any server setup has been done.
  3. Fixed some multi-instance bugs, especially the use of capture() which…

    authored
    … only executes it's command on one server (it should only be used to get some info from the server, not for things that should have side effects).
  4. Reduce god's logging verbosity, log to god.log only (not syslog), and…

    authored
    … rotate and archive god.log daily.
Commits on Sep 25, 2009
  1. Updated to Rails 2.3.4.

    authored
  2. Don't do "reset master" after restoring, because this makes the backu…

    authored
    …p of the newly restored instance inconsistent until a full backup is done.
    
    Thanks to Frank O'Dwyer for pointing this out:
    http://groups.google.com/group/ec2-on-rails-discuss/browse_thread/thread/e2386df3d329b9a5
Something went wrong with that request. Please try again.