From dbf17fd0e4b905c7b4f188dfcb64977284656dab Mon Sep 17 00:00:00 2001
From: Matt Crampton <matt@mattcrampton.com>
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 0522201d2..e5c10d616 100644
--- a/packages/react-scripts/scripts/build.js
+++ b/packages/react-scripts/scripts/build.js
@@ -233,7 +233,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();
     }
   });
-- 
GitLab