Skip to content

Using node-dev in a shared folder in a virtualbox guest #87

Closed
@pepve

Description

@pepve

I've recently started using vagrant (with virtualbox) for my development environment. I've set it up so that my node project directory is shared to the vm. I then run the project in the vm, and edit the files on my own system (the host). The problem is that the virtualbox shared folder doesn't (and won't) support file system events. So for edits that are done on the host system, node-dev doesn't work.

I created a solution to this problem. And I'd like to know if this functionality is something you would consider merging (but maybe in a different implementation).

It works like this: on the host system you run (in the project directory) node-dev --listen 0.0.0.0:45654, in the guest vm you run node-dev --remote 192.168.0.1:45654 server.js (where 192.168.0.1 is the IP address of you host system in the virtual network).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions