File tree 2 files changed +16
-10
lines changed 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -104,8 +104,6 @@ module.exports = (config, callback) => {
104
104
// setup prompts
105
105
console . log ( PR ) ;
106
106
console . log ( PR , DP , 'GO TO ONE OF THESE URLS in CHROME WEB BROWSER' , DP ) ;
107
- console . log ( PR , DP , 'MAINAPP - http://localhost:' + config . port ) ;
108
- console . log ( PR , DP , 'CLIENTS - http://' + IP . address ( ) + ':' + config . port ) ;
109
107
console . log ( PR , DP , 'MAINAPP - http://localhost:' + config . port ) ;
110
108
111
109
let ipOverride = NC_CONFIG . ip ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ let dataset = argv['dataset'];
6
6
let googlea = argv [ 'googlea' ] ;
7
7
let port = argv [ 'port' ] ;
8
8
let ip = argv [ 'ip' ] ;
9
+ let ipDef ;
9
10
10
11
shell . echo ( `
11
12
+------------------------+
@@ -70,28 +71,35 @@ shell.echo(`
70
71
71
72
// ip
72
73
if ( ip === undefined || ip === '' ) {
73
- ip = 'default' ;
74
- }
75
- shell . echo ( `
76
- 4. Setting port to ${ ip }
74
+ ipDef = '' ;
75
+ shell . echo ( `
76
+ 4. Using default ip
77
77
Use './nc.js --ip=xxx.xxx.xxx' to define a specific ip address.
78
78
(This is usually only needed on specialized hosts, e.g. EC2, Docker)`
79
- ) ;
79
+ ) ;
80
+ } else {
81
+ ipDef = `\n ip: "${ ip } ",` ;
82
+ shell . echo ( `
83
+ 4. Setting ip to ${ ip }
84
+ Use './nc.js --ip=xxx.xxx.xxx' to define a specific ip address.
85
+ (This is usually only needed on specialized hosts, e.g. EC2, Docker)`
86
+ ) ;
87
+ }
80
88
81
89
82
90
let script = `
83
91
// this file generated by NC command
84
92
const NC_CONFIG = {
85
- dataset: "${ dataset } ",
86
- ip: "${ ip } ",
93
+ dataset: "${ dataset } ",${ ipDef }
87
94
port: "${ port } ",
88
95
googlea: "${ googlea } "
89
96
};
90
97
if (typeof process === "object") module.exports = NC_CONFIG;
91
98
if (typeof window === "object") window.NC_CONFIG = NC_CONFIG;`
92
99
let js = shell . ShellString ( script ) . to ( 'app/assets/netcreate-config.js' ) ;
93
100
94
- shell . echo ( ` 5. Starting dev server...
101
+ shell . echo ( `
102
+ 5. Starting dev server...
95
103
\n
96
104
\n` ) ;
97
105
You can’t perform that action at this time.
0 commit comments