Updated README and improved port snippet

This commit is contained in:
ポール ウェッブ 2018-09-24 18:05:53 -05:00
parent add2f73682
commit a33f817989
2 changed files with 6 additions and 4 deletions

View file

@ -18,10 +18,8 @@
## Notes
- Requires our private `web-daemon` to be running locally (in development) when interacting with the Tour.
## Prerequisites
- [lbry/web-daemon](https://github.com/lbryio/web-daemon)
- [Node](https://nodejs.org) (version >= 10)
## Installation

View file

@ -158,7 +158,11 @@ fastify.ready(err => {
const start = async () => {
try {
await fastify.listen(process.env.PORT || 8080, process.env.IP || "0.0.0.0");
await fastify.listen(
process.env.NODE_ENV === "development" ?
8080 :
process.env.PORT
);
} catch (err) {
fastify.log.error(err);
process.exit(1);