You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
484 B
18 lines
484 B
#!/usr/bin/env node
|
|
|
|
// Prefix our docpad executable with the node debug and profile flags
|
|
// and suffix docpad with it's profile flag
|
|
var command = [
|
|
process.argv[0],
|
|
'--debug-brk',
|
|
'--prof',
|
|
__dirname+'/docpad',
|
|
].concat(process.argv.slice(2));
|
|
|
|
// Output the command we'll be running
|
|
console.log(command.join(' '));
|
|
|
|
// And spawn our command and let us know if any errors occur
|
|
require('safeps').spawn(command, {stdio:'inherit'}, function(err){
|
|
if (err) console.log(err);
|
|
});
|