1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-29 04:12:18 -05:00

read port from env vars instead of args

This commit is contained in:
Tankred Hase 2013-04-09 10:33:03 +02:00
parent 668f768a63
commit a2d147a564

View File

@ -6,8 +6,8 @@ var express = require('express'),
fs = require('fs'), fs = require('fs'),
port, app, dev; port, app, dev;
port = (process.argv[2]) ? process.argv[2] : 8585; port = process.env.PORT || 8585;
dev = (process.argv[3] === '--dev'); dev = (process.argv[2] === '--dev');
app = express(); app = express();
// Server setup // Server setup