/vagrant-express

Vagrant server build for Express (NodeJS) web application development

Primary LanguageShell

Installation

First run vagrant up which will setup the server for the first time and perform provisioning by installing all necessary software.

cd /path/to/project/dir
vagrant up

Now, ssh into the server.

vagrant ssh

Move to the application root directory /vagrant and install all dependency modules.

cd /vagrant
npm install

Now, exit from the server.

exit

Reboot the server so that upstart kicks-off the node app at startup.

vagrant reload

Now browse to http://192.168.50.100/. And you should see an "Awesome!" message.

References