From f271f17524962c0dfec5bb658bbebc06523a4939 Mon Sep 17 00:00:00 2001 From: doapp-ryanp Date: Wed, 16 Sep 2015 12:33:39 -0500 Subject: [PATCH] bugfixes --- lib/commands/deploy_lambda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/deploy_lambda.js b/lib/commands/deploy_lambda.js index 6a8f7583d..d599c73bc 100644 --- a/lib/commands/deploy_lambda.js +++ b/lib/commands/deploy_lambda.js @@ -509,7 +509,7 @@ Packager.prototype._createDistFolder = Promise.method(function() { // Get ENV file from S3 return _this._JAWS.getEnvFile(_this._region, _this._stage) .then(function(s3ObjData) { - var targetBackDir = path.join(_this._JAWS._meta.projectRootPath, 'back'); + var targetBackDir = path.join(_this._distDir, 'back'); fs.writeFileSync(path.join(targetBackDir, '.env'), s3ObjData.Body); }); });