File tree 1 file changed +13
-0
lines changed
packages/react-scripts/scripts
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,19 @@ 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 . yellow (
57
+ "Attempting to bind to $HOST because it was specified. If this was unintentional, check that you haven't mistakenly set it in your shell."
58
+ )
59
+ ) ;
60
+ console . log (
61
+ chalk . cyan (
62
+ 'https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#advanced-configuration\n'
63
+ )
64
+ ) ;
65
+ }
66
+
54
67
// We attempt to use the default port but if it is busy, we offer the user to
55
68
// run on a different port. `choosePort()` Promise resolves to the next free port.
56
69
choosePort ( HOST , DEFAULT_PORT )
You can’t perform that action at this time.
0 commit comments