diff --git a/README.md b/README.md index c82d7ab..adb8b94 100755 --- a/README.md +++ b/README.md @@ -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 diff --git a/server.js b/server.js index d234255..e1bd3a7 100755 --- a/server.js +++ b/server.js @@ -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);