title: Serve files using Rack TryStatic directly?
body: <p>I'm using Middleman to create a static site.</p>
  
  <p>Middleman generates static html files into <code>./build</code> directory.</p>
  
  <p>Here's the config I'm currently using:</p>
  
  <pre><code>require 'rubygems'
  require 'middleman'
  require 'rack/contrib/try_static'
  
  use Rack::TryStatic, :root =&gt; "build", :urls =&gt; %w[/], :try =&gt; ['.html']
  
  run Middleman::Application.server
  </code></pre>
  
  <p>So Middleman is serving the static files right now. How can I make <code>Rack::TryStatic</code> handle the requests directly?</p>
  
  <p>I tried to make it something like</p>
  
  <pre><code>run Rack::TryStatic, :root =&gt; "build", :urls =&gt; %w[/], :try =&gt; ['.html']
  </code></pre>
  
  <p>But it doesn't work is run only accepts 1 argument. And <code>Rack::TryStatic</code> requires 2 arguments, <code>app</code> and <code>options</code> to initialize, and I don't have any <code>app</code>.</p>
  
  <p>How can I do this?</p>
  
  <p>(And if it matters, I'm deploying to Heroku)</p>