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 gaearon committed Feb 24, 2017
1 parent c933f52 commit 3e2cdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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 3e2cdab

Please sign in to comment.