title: How to structure app.configure in Express
body: <p>I'm using Express 3.0 alpha to build an app but am a little confused with the app config structure</p>
  
  <pre><code>app.configure -&gt;
    app.set "views", __dirname + "/views"
    app.set "view engine", "jade"
    app.use express.bodyParser()
    app.use express.methodOverride()
  
  app.configure "development", -&gt;
    app.use express.logger("dev")
  
  app.configure "production", -&gt;
    app.use express.logger()
  </code></pre>
  
  <ol>
  <li><p>Is the first <code>app.configure, -&gt;</code> required? I've been browsing other people's apps and it doesn't seem to matter if I use it.</p></li>
  <li><p>How does ordering work for <code>app.configure, -&gt;</code>? It seems correct to put the specific environments (development, and production) after the first <code>app.configure, -&gt;</code> as I've seen in other apps but it doesn't seem to work with my app (i.e. the logger doesn't print anything in my console at all).</p></li>
  </ol>
  
  <p>Thanks in advance!</p>