node-livereload icon indicating copy to clipboard operation
node-livereload copied to clipboard

Support configuring the interface (i.e. host) the server will listen to

Open iamFIREcracker opened this issue 2 years ago • 1 comments

  • 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 avatar Mar 29 '22 10:03 iamFIREcracker

@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?

napcs avatar May 10 '22 19:05 napcs