Skip to content

Instantly share code, notes, and snippets.

@tjhanley
Created February 2, 2012 00:00
Show Gist options
  • Save tjhanley/1720260 to your computer and use it in GitHub Desktop.
Save tjhanley/1720260 to your computer and use it in GitHub Desktop.
Rubber Capistrano Task to bootstrap Node.js on a server
namespace :rubber do
after "rubber:upgrade_packages", "rubber:prep_for_bootstrap"
desc "prep server for node install"
task :prep_for_bootstrap, :roles => 'node-js' do
rsudo "apt-get install python-software-properties"
rsudo "add-apt-repository ppa:chris-lea/node.js"
rsudo "apt-get update"
rsudo "apt-get -y install nodejs"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment