diff --git a/lib/main.js b/lib/main.js index 82738b58..b74720a3 100644 --- a/lib/main.js +++ b/lib/main.js @@ -106,11 +106,11 @@ Lambda.prototype._zipfileTmpPath = function (program) { }; Lambda.prototype._rsync = function (program, codeDirectory, callback) { - var excludes = [ ".git*", "*.env", "*.log", "node_modules", "test" ]; + var excludes = [ '.git*', 'deploy.env', '*.log', 'node_modules', 'test' ]; if (program.packageDirectory) { excludes.push(program.packageDirectory); } - var excludeArgs = excludes.map(function(exclude) { return '--exclude=' + exclude; }).join(" "); + var excludeArgs = excludes.map(function(exclude) { return '--exclude=' + exclude; }).join(' '); exec('rsync -r ' + excludeArgs + ' . ' + codeDirectory, function (err) { if (err) { throw err;