diff --git a/app.js b/app.js index f045833..007339d 100644 --- a/app.js +++ b/app.js @@ -2,6 +2,7 @@ require('dotenv').config({ silent: true }) const express = require('express') const middleWarez = require('./index.js') const port = process.env.PORT || 3000 +const host = process.env.HOST || '127.0.0.1' const app = express() @@ -15,6 +16,6 @@ app.get('/callback', middleWarez.callback) app.get('/success', middleWarez.success) app.get('/', middleWarez.index) -app.listen(port, () => { +app.listen(port, host, () => { console.log("gandalf is walkin' on port " + port) })