Permalink
Browse files

Adding DOMAIN env var

  • Loading branch information...
andrewshell committed May 31, 2017
1 parent 73218c7 commit ef4909cda414ea1757c3e62cd892bc7caec74907
Showing with 2 additions and 1 deletion.
  1. +2 −1 app.js
  2. BIN public/favicon.ico
3 app.js
@@ -30,6 +30,7 @@
.argv()
.env()
.defaults({
"DOMAIN": "localhost",
"PORT": 5337
});
@@ -86,7 +87,7 @@
// Start server
server = app.listen(nconf.get('PORT'), function () {
app.locals.host = server.address().address;
app.locals.host = nconf.get('DOMAIN');
app.locals.port = server.address().port;
if (app.locals.host.indexOf(':') > -1) {
BIN +1.37 KB public/favicon.ico
Binary file not shown.

0 comments on commit ef4909c

Please sign in to comment.