Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (27 sloc) 891 Bytes

Example of using ncluster with capistrano.

Dependencies

Capistrano

gem install capistrano

Nodejs Vagrant

gem install vagrant

git clone git://github.com/benmmurphy/nodejs_vagrant.git
cd nodejs_vagrant

vagrant box add vagrant-oneiric https://github.com/downloads/benmmurphy/nodejs_vagrant/package_4.1.8.box
vagrant up
vagrant ssh-config >> ~/.ssh/config
ssh default #to check ssh is working

Running

git clone git://github.com/benmmurphy/nodejs_vagrant_helloworld.git
cd nodejs_vagrant_helloworld
cap deploy:setup
cap deploy

ssh default
curl -v http://localhost:3000

Running behind Nginx

cap staging_nginx deploy:setup
cap staging_nginx deploy

ssh default
<< add 127.0.0.1 helloworld to /etc/hosts >>
curl -v http://helloworld

Similar Tools