This commit is contained in:
doapp-ryanp 2015-09-16 12:33:39 -05:00
parent f4f9ead06f
commit f271f17524

View File

@ -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);
});
});