diff --git a/lib/cmds/blockchain/blockchain.js b/lib/cmds/blockchain/blockchain.js index 82333fd94..388af4a76 100644 --- a/lib/cmds/blockchain/blockchain.js +++ b/lib/cmds/blockchain/blockchain.js @@ -57,7 +57,7 @@ Blockchain.prototype.initChainAndGetAddress = function() { fs.mkdirpSync(this.datadir); // copy mining script - fs.copySync(utils.joinPath(__dirname, "/../js"), ".embark/development/js", {overwrite: true}); + fs.copySync(utils.joinPath(__dirname, "/../../../js"), ".embark/development/js", {overwrite: true}); // check if an account already exists, create one if not, return address result = this.runCommand(this.client.listAccountsCommand()); diff --git a/lib/cmds/template_generator.js b/lib/cmds/template_generator.js index 2f48c6e7c..df4b4fc79 100644 --- a/lib/cmds/template_generator.js +++ b/lib/cmds/template_generator.js @@ -6,7 +6,7 @@ var TemplateGenerator = function(templateName) { }; TemplateGenerator.prototype.generate = function(destinationFolder, name) { - var templatePath = utils.joinPath(__dirname, '/../', this.templateName); + var templatePath = utils.joinPath(__dirname, '/../../', this.templateName); console.log('Initializing Embark Template....'.green); fs.copySync(templatePath, destinationFolder + name);