diff --git a/lib/actions/ProjectCreate.js b/lib/actions/ProjectCreate.js index c12804361..8741f7b97 100644 --- a/lib/actions/ProjectCreate.js +++ b/lib/actions/ProjectCreate.js @@ -211,9 +211,9 @@ module.exports = function(SPlugin, serverlessPath) { .then(function(answers) { // Set prompt values - _this.S.config.awsAdminKeyId = answers.awsAdminKeyId; - _this.S.config.awsAdminSecretKey = answers.awsAdminSecretKey; - _this.project.data.name = answers.name; + _this.S.config.awsAdminKeyId = answers.awsAdminKeyId; + _this.S.config.awsAdminSecretKey = answers.awsAdminSecretKey; + _this.project.data.name = answers.name; _this.evt.options.domain = answers.domain; _this.evt.options.notificationEmail = answers.notificationEmail; @@ -352,7 +352,7 @@ module.exports = function(SPlugin, serverlessPath) { // Create Project Scaffolding return SUtils.writeFile( - path.join(_this.S.config.projectPath, 'back', '.env'), + path.join(_this.S.config.projectPath, '.env'), 'SERVERLESS_STAGE=development' + '\nSERVERLESS_DATA_MODEL_STAGE=development' + '\nSERVERLESS_PROJECT_NAME=' + _this.project.data.name @@ -360,7 +360,6 @@ module.exports = function(SPlugin, serverlessPath) { .then(function() { // Create Folders - fs.mkdirSync(path.join(_this.S.config.projectPath, 'back', 'modules')); fs.mkdirSync(path.join(_this.S.config.projectPath, 'meta')); fs.mkdirSync(path.join(_this.S.config.projectPath, 'meta', 'private')); fs.mkdirSync(path.join(_this.S.config.projectPath, 'meta', 'public'));