Vagrant-node-dev is a project mainly written in ..., it's free.
A Vagrant .box for node development
This is a vagrant box based off of the lucid64 box.
It includes:
cd
to it.$ vagrant up
$ vagrant ssh
will give you shell access to the machine.$ ssh-keygen -t rsa -C "[email protected]"
$ source ~/.bashrc
~/.ssh/
$ ssh -T [email protected]
By default Vagrant sets up a 'root' shared folder for you. On the host
machine it will be wherever you ran vagrant up
in step 4 above.
I have set up an symlink (for convenience) at ~/shared
that points
to the location of the shared folder on the guest VM.
The Vagrantfile I packed with this box sets up some common forwarded
ports used by node apps. Ports 3000-3009
and 8080
are forwarded from the
guest machine to the host. You can forward more ports. Read the
Vagrant documentation to find out how.
From the Vagrant docs:
$ vagrant
Usage: vagrant SUBCOMMAND
--help Show help for the current subcommand.
--version Output running Vagrant version.
Supported subcommands:
box Box commands
destroy Destroys the vagrant environment
halt Halts the currently running vagrant environment
init Initializes current folder for Vagrant usage
package Packages a vagrant environment for distribution
provision Run the provisioner
reload Reload the vagrant environment
resume Resumes a suspend vagrant environment
ssh SSH into the currently running environment
ssh-config outputs .ssh/config valid syntax for connecting to this environment via ssh
status Shows the status of the Vagrant environment.
suspend Suspends the currently running vagrant environment
up Creates the vagrant environment
For help on a specific subcommand, run `vagrant SUBCOMMAND --help`