summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2017-12-12 18:55:40 -0500
committerJules <jules@asdf.us>2017-12-12 18:55:40 -0500
commit67736c2debc11fdcc397cdc5b253ca4de6630b81 (patch)
treea93c493ced9ad9ba31c1ab8b9064f64a48b1cd88
parent0ee6a410eca2d9ef9e51c21f75fbfd37f5d1ebca (diff)
use port from env
-rw-r--r--bucky/app/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucky/app/index.js b/bucky/app/index.js
index 85c1d82..704802c 100644
--- a/bucky/app/index.js
+++ b/bucky/app/index.js
@@ -21,7 +21,7 @@ var app, server
var site = module.exports = {}
site.init = function(){
app = express()
- app.set('port', 5000)
+ app.set('port', process.env.PORT || 5000)
app.use(favicon(__dirname + '../../../public/favicon.ico'))
app.use(bodyParser.json())