Skip to content
Snippets Groups Projects
Verified Commit 797aa6dc authored by Erick Hitter's avatar Erick Hitter
Browse files

Allow listener to be configured for use outside of Heroku

parent 95fb7e46
No related branches found
No related tags found
No related merge requests found
{ {
"apikey": "", "apikey": "",
"listener": "0.0.0.0",
"port": 9001 "port": 9001
} }
...@@ -114,6 +114,6 @@ app.post('/post', function(req, res){ ...@@ -114,6 +114,6 @@ app.post('/post', function(req, res){
}); });
//tells Node which port to listen on //tells Node which port to listen on
app.listen(app.get('port'), function() { app.listen( app.get('port'), config.listener, function() {
console.log('Weather on the Slash is running on port', app.get('port')); console.log( 'Weather on the Slash is running on', config.listener, 'and port', app.get('port') );
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment