Created
October 19, 2010 04:51
-
-
Save paul-english/633631 to your computer and use it in GitHub Desktop.
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
// 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', | |
'[email protected]', | |
'socket.io', | |
'cradle', | |
'redis', | |
'apricot', | |
'paynode', | |
'[email protected]', | |
// 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