From d14ef48a2e375b36131c043ff848c07e164aa4dd Mon Sep 17 00:00:00 2001 From: Matt C Date: Thu, 23 Feb 2017 16:45:42 -0800 Subject: [PATCH 1/2] Setting a dynamic port value for the pushstate-server URL text after a build is completed --- 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 7c953c3544e..a55213682a8 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -223,7 +223,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(); } }); From 466a669cfecd3377c798feb65e7ca4f59e10e799 Mon Sep 17 00:00:00 2001 From: Matt Crampton Date: Fri, 24 Feb 2017 14:16:20 -0800 Subject: [PATCH 2/2] 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 56a907e9a82..e5c10d616ad 100644 --- a/packages/react-scripts/scripts/build.js +++ b/packages/react-scripts/scripts/build.js @@ -232,7 +232,7 @@ function build(previousSizeMap) { } else { console.log(' ' + chalk.cyan('npm') + ' install -g pushstate-server'); } - console.log(' ' + chalk.cyan('pushstate-server') + ' build'); + console.log(' ' + chalk.cyan('pushstate-server') + ' ' + build); console.log(' ' + chalk.cyan(openCommand) + ' http://localhost:' + (process.env.PORT || 9000) console.log(); }