Created
February 2, 2012 00:00
-
-
Save tjhanley/1720260 to your computer and use it in GitHub Desktop.
Rubber Capistrano Task to bootstrap Node.js on a server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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