Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

make starting port configurable.

  • Loading branch information...
commit fa4979f7d92a1e20b2fd7f0d8ba3e3feb567e0d0 1 parent 350abcf
Nuo Yan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app.js
View
4 app.js
@@ -29,8 +29,8 @@ var fs=require('fs');
var util=require('util');
var ZkClient=require('./zk.js').ZkClient;
-var port=3000;
-var host = process.env.ZK_HOST || 'localhost:2181'
+var port = process.env.ZK_BROWSER_PORT || 3000;
+var host = process.env.ZK_HOST || 'localhost:2181';
var zkclient = new ZkClient(host);
var users = JSON.parse(fs.readFileSync(path.join(__dirname,'user.json'), 'utf8'));
var app = express();
Please sign in to comment.
Something went wrong with that request. Please try again.