Skip to content

Commit

Permalink
When using SLS_DEBUG environment variable output pip requirements com…
Browse files Browse the repository at this point in the history
…mand (#222)

closes #169
  • Loading branch information
twonds authored and dschep committed Aug 8, 2018
1 parent ce04ef5 commit 3e09806
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/pip.js
Expand Up @@ -129,8 +129,11 @@ function installRequirements(
const slimCmd = getSlimPackageCommands(options, preparedPath);
cmdOptions.push(...slimCmd);
}

const res = spawnSync(cmd, cmdOptions, { cwd: servicePath, shell: true });
let spawnArgs = { cwd: servicePath, shell: true };
if (process.env.SLS_DEBUG) {
spawnArgs.stdio = 'inherit';
}
const res = spawnSync(cmd, cmdOptions, spawnArgs);
if (res.error) {
if (res.error.code === 'ENOENT') {
if (options.dockerizePip) {
Expand Down

0 comments on commit 3e09806

Please sign in to comment.