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.
- Deploying Node.js With Upstart and Monit
- Node.js production deployment with Nginx, Varnish, Upstart and Monit
- Control Node.Js server using upstart/monit
- Running node.js Apps with Upstart
- Node.js production deployment with Nginx, Varnish, Upstart and Monit
- Install Node.js and Express.js with Nginx on Debian Lenny
- Installing Express for Node.JS on Ubuntu 12.04
- GitHub Gist for inslatting Nodejs, Nginx, MongoDB and Redis