Skip to content

Commit ef4909c

Browse files
committed
Adding DOMAIN env var
1 parent 73218c7 commit ef4909c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
.argv()
3131
.env()
3232
.defaults({
33+
"DOMAIN": "localhost",
3334
"PORT": 5337
3435
});
3536

@@ -86,7 +87,7 @@
8687

8788
// Start server
8889
server = app.listen(nconf.get('PORT'), function () {
89-
app.locals.host = server.address().address;
90+
app.locals.host = nconf.get('DOMAIN');
9091
app.locals.port = server.address().port;
9192

9293
if (app.locals.host.indexOf(':') > -1) {

public/favicon.ico

1.37 KB
Binary file not shown.

0 commit comments

Comments
 (0)