Upgrade to Pro — share decks privately, control downloads, hide ads and more …

From 'Legacy' to 'Edge'

From 'Legacy' to 'Edge'

SHIBATA Hiroshi

June 08, 2013
Tweet

More Decks by SHIBATA Hiroshi

Other Decks in Technology

Transcript

  1. ࣲాതࢤ SHIBATA Hiroshi QBQFSCPZDP BTBLVTBSC paperboy&co., Inc. Continuous Upgrades For

    Rails Apps. ൃද৔ॴ3FE%PU3VCZ$POG 2013-06-08(Sat) From 'Legacy' to 'Edge'
  2. Kage (kah-geh) is an HTTP shadow proxy server that sits

    between clients and your server(s) to enable "shadow requests".
  3. Kage::ProxyServer.start do |server| config = YAML.load_file(File.expand_path("../config.yml", __FILE__))[ENV['RAILS_ENV']] server.port = 8090

    server.host = config[:host] server.debug = false # backends can share the same host/port server.add_master_backend(:production, config[:production], 8080) server.add_backend(:sandbox, config[:sandbox], 80) server.client_timeout = 15 server.backend_timeout = 10 # Dispatch all GET requests to multiple backends, otherwise only :production server.on_select_backends do |request, headers| if request[:method] == 'GET' && rand(9) == 0 [:production, :sandbox] else [:production] end end end
  4. Ruby Ruby Ruby Ruby 1.8.6 1.8.7 1.9 2.0 Rails 2.0/2.1

    Rails 2.3 Rails 3.0 Rails 3.2 always on the edge is motivating
  5. source 'https://rubygems.org' gem 'rails', '~> 2.3.18' gem 'rake', '~> 0.9.2'

    gem 'rdoc' gem 'rake-confirm' gem 'mysql' gem "mysql_retry_lost_connection" gem 'acts_as_paranoid', :github => 'paperboy-30days/acts_as_paranoid' gem 'passenger', '~> 3.0' gem 'memcache-client', :require => 'memcache' gem 'system_timer' gem 'yajl-ruby', :require => 'yajl' gem 'will_paginate', '~> 2.3' gem 'mail' gem 'sass' gem 'compass-rails' gem 'osaipo_client', :git => '[email protected]:paperboy-all/ osaipo_client.git', :branch => 'legacy' gem 'jugem_client', :git => '[email protected]:paperboy-all/ jugem_client.git' gem 'ppb_footer', :github => 'paperboy-all/ppb_footer'