File tree 1 file changed +15
-0
lines changed
packages/react-scripts/scripts
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,21 @@ if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
51
51
const DEFAULT_PORT = parseInt ( process . env . PORT , 10 ) || 3000 ;
52
52
const HOST = process . env . HOST || '0.0.0.0' ;
53
53
54
+ if ( process . env . HOST ) {
55
+ console . log (
56
+ chalk . cyan (
57
+ `Attempting to bind to HOST environment variable: ${ chalk . yellow (
58
+ chalk . bold ( process . env . HOST )
59
+ ) } `
60
+ )
61
+ ) ;
62
+ console . log (
63
+ `If this was unintentional, check that you haven't mistakenly set it in your shell.`
64
+ ) ;
65
+ console . log ( `Learn more here: ${ chalk . yellow ( 'http://bit.ly/2mwWSwH' ) } ` ) ;
66
+ console . log ( ) ;
67
+ }
68
+
54
69
// We attempt to use the default port but if it is busy, we offer the user to
55
70
// run on a different port. `choosePort()` Promise resolves to the next free port.
56
71
choosePort ( HOST , DEFAULT_PORT )
You can’t perform that action at this time.
0 commit comments