This file contains hidden or 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
var fs = require('fs'); | |
var Q = require('q'); | |
var spawn = require('child_process').spawn; | |
var path = require('path'); | |
// Make sure you append the path with the lambda deployment path, so you can | |
// execute your own binaries in, say, bin/ | |
process.env["PATH"] = process.env["PATH"] + ":" + process.env["LAMBDA_TASK_ROOT"] + '/bin/'; | |
function spawnCmd(cmd, args, opts) { |