From 29cf7085753826c6273fdd5b2a94654bc938964d Mon Sep 17 00:00:00 2001 From: okfprojz Date: Thu, 24 Sep 2015 20:09:57 -0400 Subject: port --- lib/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/index.js') diff --git a/lib/index.js b/lib/index.js index f4b01f4..d8805b3 100644 --- a/lib/index.js +++ b/lib/index.js @@ -21,7 +21,6 @@ var upload = require("./upload") var site = module.exports = {} site.init = function(){ app = express() - app.set('port', 5000) app.set('view engine', 'ejs') app.set('views', path.join(__dirname, '../views')) app.use(express.static(path.join(__dirname, '../public'))) @@ -30,7 +29,7 @@ site.init = function(){ app.use(express.query()) - server = http.createServer(app).listen(5000, function () { + server = http.createServer(app).listen(process.env.PORT, function () { console.log('LuCkYPLoP listening at http://5.k:%s', server.address().port) }) @@ -64,4 +63,4 @@ site.init = function(){ } }) }) -} \ No newline at end of file +} -- cgit v1.2.3-70-g09d2