Skip to content

Commit

Permalink
Setting a dynamic port value for the pushstate-server URL text (#1628)
Browse files Browse the repository at this point in the history
* 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 gaearon committed Feb 24, 2017
1 parent b609ac9 commit dbf17fd
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 @@ -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();
}
});
Expand Down

0 comments on commit dbf17fd

Please sign in to comment.