INNER CODE UNIT · JavaScript
BbPromise
logandk/serverless-wsgi · index.js:202
return new BbPromise((resolve, reject) => {
if (!this.enableRequirements) {
return resolve();
}
let args = [path.resolve(__dirname, "requirements.py")];
if (this.pipArgs) {
args.push("--pip-args");
args.push(this.pipArgs);
}
if (this.wsgiApp) {
args.push(path.resolve(__dirname, "requirements.txt"));
}
const requirementsFile = path.join(this.appPath, "requirements.txt");