Skip to content

Instantly share code, notes, and snippets.

@paul-english
Created October 19, 2010 04:51
Show Gist options
  • Save paul-english/633631 to your computer and use it in GitHub Desktop.
Save paul-english/633631 to your computer and use it in GitHub Desktop.
// Firstleft build script ~nrub
//
// 1) installs all necessary node libraries
// 2) copies conf files to appropriate etc directories
// 3) restarts running application server
// 4) runs tests
var run = require('run').run;
var npmPackages = [
'express',
'connect',
'jade',
'connect-auth@0.1.2',
'socket.io',
'cradle',
'redis',
'apricot',
'paynode',
'connect-redis@0.1.2',
// for tests
'soda'
];
run(
'sudo npm install ' + npmPackages.join(' '),
'sudo cp ' + __dirname + '/conf/firstleft.conf /etc/init/',
'sudo cp ' + __dirname + '/conf/frst.cijoe.conf /etc/init/',
'sudo /sbin/stop firstleft',
'sudo /sbin/start firstleft',
'node test.js'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment