removed back folder

This commit is contained in:
Eslam A. Hefnawy 2016-01-07 19:43:44 +02:00
parent 1e9b9302bc
commit 7f1ad4e3bd

View File

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