From 7f1ad4e3bdf3d67df354ee54e0f3fe24e41e7d4e Mon Sep 17 00:00:00 2001 From: "Eslam A. Hefnawy" Date: Thu, 7 Jan 2016 19:43:44 +0200 Subject: [PATCH] removed back folder --- lib/actions/ProjectCreate.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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'));