Configurable webui port

This commit is contained in:
crackcomm
2017-03-29 05:27:20 +02:00
committed by Adrian Gallagher
parent 028902f21b
commit f8b765fd53
2 changed files with 4 additions and 3 deletions

View File

@@ -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`);
});