Skip to content

Commit

Permalink
Setting a dynamic port value for the pushstate-server URL text (faceb…
Browse files Browse the repository at this point in the history
…ook#1628)

* Setting a dynamic port value for the pushstate-server URL text after a build is completed

* Fixing merge conflict
  • Loading branch information
mattccrampton authored and randycoulman committed May 8, 2017
1 parent cf5238a commit f314479
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
});
Expand Down

0 comments on commit f314479

Please sign in to comment.