From f3144794bd117cd5971e96f303e5b85504012528 Mon Sep 17 00:00:00 2001 From: Matt Crampton Date: Fri, 24 Feb 2017 14:28:36 -0800 Subject: [PATCH] Setting a dynamic port value for the pushstate-server URL text (#1628) * Setting a dynamic port value for the pushstate-server URL text after a build is completed * Fixing merge conflict --- packages/react-scripts/scripts/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-scripts/scripts/build.js b/packages/react-scripts/scripts/build.js index 913c9995d6e..a209f6e4231 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -224,7 +224,7 @@ function build(previousSizeMap) { console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server'); } console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build); - console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:9000'); + console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000) console.log(); } });