From f8b765fd53bc7b3f53a86df9fb2a2d4c6ff7eabc Mon Sep 17 00:00:00 2001 From: crackcomm Date: Wed, 29 Mar 2017 05:27:20 +0200 Subject: [PATCH] Configurable webui port --- CONTRIBUTORS | 1 + web/server.js | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 8d98dc77..974ca423 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -4,4 +4,5 @@ Scott - gloriousCode Ryan O'Hara-Reid - shazbert Jacob Gadikian - faddat Cornel - cornelk +Ɓukasz Kurowski - crackcomm Adrian Gallagher - thrasher- diff --git a/web/server.js b/web/server.js index eb96a2fd..62a131a3 100644 --- a/web/server.js +++ b/web/server.js @@ -57,7 +57,7 @@ app.post('/config/all/save', function(req, res) { }); - -app.listen(80, function(){ - console.log('GoCyptoTrader website running! Enter http://localhost/ into browser'); +var port = process.env.GCT_WEB_PORT || 80; +app.listen(port, function(){ + console.log(`GoCyptoTrader website running! Enter http://localhost:${port}/ into browser`); }); \ No newline at end of file