Skip to content

Commit

Permalink
Merge branch 'master' of github.com:killme2008/node-zk-browser
Browse files Browse the repository at this point in the history
  • Loading branch information
killme2008 committed Nov 22, 2012
2 parents 8001236 + 235c24b commit ca71b67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
logs/
node_modules/
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ var util=require('util');
var ZkClient=require('./zk.js').ZkClient;

var port=3000;
var zkclient = new ZkClient("localhost:2181");
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 = module.exports = express.createServer();

Expand Down

0 comments on commit ca71b67

Please sign in to comment.