Allow custom port

This commit is contained in:
Brandon Keepers 2016-09-16 17:00:05 -05:00
parent fbc764c6ff
commit e2df263ea5
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ http.createServer(function (req, res) {
res.end('no such location');
}
});
}).listen(3000);
}).listen(process.env.PORT || 3000);
function register(behavior) {
webhook.on(behavior.webhook, function (event) {