title: Using app.configure in express
body: <p>I found some code where they set up Express without using <code>app.configure</code> and I was wondering, what's the difference between using <code>app.configure</code> without an environment specifier and not using it?</p>
  
  <p>In other words, what's the difference between this:</p>
  
  <pre><code>var app = require(express);
  
  app.configure(function(){
      app.set('port', process.env.PORT || config.port);
      app.use(express.logger('dev'));  /* 'default', 'short', 'tiny', 'dev' */
      app.use(express.bodyParser());
      app.use(express.static(path.join(__dirname, 'site')));
  }
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>var app = require(express);
  
  app.set('port', process.env.PORT || config.port);
  app.use(express.logger('dev'));  /* 'default', 'short', 'tiny', 'dev' */
  app.use(express.bodyParser());
  app.use(express.static(path.join(__dirname, 'site')));
  </code></pre>
  
  <p>Thanks.</p>