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

Heroku を利用した Quipper の開発事例紹介

Heroku を利用した Quipper の開発事例紹介

Tech Compass Vol.6 “Love Heroku?” の発表資料です
http://techcompass.jp/study/06/

Kensuke Nagae

November 29, 2013
Tweet

More Decks by Kensuke Nagae

Other Decks in Programming

Transcript

  1. Ϣʔεέʔε ϩάه࿥ϛυϧ΢ΣΞ class LoggingMiddleware def initialize(app) @app = app end

    def call(env) ENV['ENABLE_LOGGING'] ? call_with_logging(env) : call_without_logging(env) end def call_with_logging(env) request = Rack::Request.new env status, headers, body = call_without_logging(env) Log.create(request: request, response: [status, headers, body]) [status, headers, body] end def call_without_logging(env) @app.call env end end