noBrowser
This commit is contained in:
1 parent
f7a68ee4eb
commit
d09d1c93de
3 files changed
+11
-4
No files matched your search
+8
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user