noBrowser

This commit is contained in:
Luis Fernando Molina committed 2020-08-23 09:39:19 +02:00
1 parent f7a68ee4eb
commit d09d1c93de
3 files changed
+11 -4

No files matched your search

+8 -1
View File
@@ -43,7 +43,14 @@ exports.newWebServer = function newWebServer(EVENTS_SERVER) {
if (isHttpServerStarted === false) {
gWebServer = http.createServer(onBrowserRequest).listen(port)
isHttpServerStarted = true
open('http://localhost:' + port)
/* Starting the browser now is optional */
if (process.argv[4] !== 'noBrowser') {
open('http://localhost:' + port)
} else {
console.log('Running Backend only with no UI.')
}
console.log('Web Server Started.')
}
} catch (err) {