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
This commit is contained in:
Matt Crampton
2017-02-24 14:28:36 -08:00
committed by Dan Abramov
parent b609ac96fe
commit dbf17fd0e4

View File

@@ -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();
}
});