Updated README and improved port snippet
This commit is contained in:
parent
add2f73682
commit
a33f817989
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue