Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 14 lines (11 sloc) 336 Bytes
#!/usr/bin/env node
var nodehook = require('../');
if(process.argv.length < 4) {
console.log('Usage: ./nodehook port cmd');
console.log('Example: ./nodehook 8855 ./deploy.sh');
console.log('Example: ./nodehook 8855 ls -al');
process.exit();
}
nodehook.port = process.argv[2];
nodehook.cmd = process.argv[3];
nodehook.start();