rails / spring-watcher-listen

MIT License
64 stars 35 forks source link

Add --listen-on option a la guard --listen-on to better support VMs #10

Open winni2k opened 8 years ago

winni2k commented 8 years ago

I may be confused about how spring works, but I would like to be able to tell spring to listen to listen via a network address like guard does when I run bundle exec guard -o 10.0.2.2:4000 inside a VM.

Is this possible already and I'm just too dense to figure it out?

e2 commented 8 years ago

I'm guessing you are mounting a shared folder (on the host) inside a VM.

It's a huge amount of work to make everyone happy in the area of VMs. I actually dropped TCP support in Listen since 3.x because of this.

I'd consider the opposite of what you're doing:

  1. Mount a folder within the VM on the host. (e.g. using Samba if your host is Windows)
  2. Install all your development tools within the VM

If neither is an option for you, you have to have an incredibly strong reason why.

It really depends on what you're doing, so you have to be very, very specific.

Otherwise, you'll likely be disappointed anyway (no matter how much work I do to help you).