File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
packages/react-scripts/scripts Expand file tree Collapse file tree 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])) {
5151const DEFAULT_PORT = parseInt ( process . env . PORT , 10 ) || 3000 ;
5252const HOST = process . env . HOST || '0.0.0.0' ;
5353
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+
5469// We attempt to use the default port but if it is busy, we offer the user to
5570// run on a different port. `choosePort()` Promise resolves to the next free port.
5671choosePort ( HOST , DEFAULT_PORT )
You can’t perform that action at this time.
0 commit comments