summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorokfprojz <jules+okfprojz@okfoc.us>2015-09-24 20:09:57 -0400
committerokfprojz <jules+okfprojz@okfoc.us>2015-09-24 20:09:57 -0400
commit29cf7085753826c6273fdd5b2a94654bc938964d (patch)
tree9602d756581d82a2e1e70514769488013a23c9de /lib
parent8af5560079066b2db70524c92dc783945cd70cad (diff)
port
Diffstat (limited to 'lib')
-rw-r--r--lib/index.js5
1 files changed, 2 insertions, 3 deletions
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
+}