node-livereload
node-livereload copied to clipboard
Support configuring the interface (i.e. host) the server will listen to
- I am trying to integrate livereload with an Express application running on Replit
- When deployed there, Replit assigns you a hostname
- It proxies all incoming connections to your service, so long as it listened to
0.0.0.0
- To make this all work I then need the Express application to listen on
0.0.0.0
(not a big deal, it's the default) - I also need to tell livereload to listen on a a different interface, e.g.
127.0.0.1
- But this, unfortunately is currently not supported
Is there appetite for adding an additional config, host
, for livereload to use while creating the listening server? Let me know, I have already pushed some changes into my branch, and it will not take me much to create a PR off of it.
Thanks, M.
@iamFIREcracker Yea I'm not opposed to this. Let's use -b
for the CLI option, and --bind
for the long option, and bindHost
as the argument?
Do you want to make a PR?