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:
parent
668f768a63
commit
a2d147a564
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user