var express = require('express');
var app = express();

var user = process.env.USER;
var pass = process.env.PASS;

app.set('port', process.env.PORT || 3000);

if (user && pass) {
  app.use(express.basicAuth(user, pass));
}

app.use(express.logger('dev'));
app.use(express.compress());
app.use(express.static(__dirname + '/dist'));

app.listen(app.get('port'), function() {});

@@ -53,67 +53,8 @@
 );%0A%0A
-var user = process.env.USER;%0Avar pass = process.env.PASS;%0A%0A
 app.
@@ -97,38 +97,16 @@
 );%0A%0A
-if (user && pass) %7B%0A  
 app.use(
 expr
@@ -101,24 +101,29 @@
 app.use(
+'/', 
 express.
 basicAut
@@ -118,154 +118,114 @@
 ess.
-basicAuth(user, pass
+static('./dist'
 ));
-%0A%7D
 %0A%0Aapp.
-use(express.logger('dev'));%0Aapp.use(express.compress());%0Aapp.use(express.static(__dirname + '/dist'));%0A%0Aapp.listen(
+listen(app.get('port'), function() %7B%0A  console.log('server listening on port :' + 
 app.
@@ -235,26 +235,15 @@
 ('port')
-, function() %7B
+);%0A
 %7D);%0A

update server.js