adjust paths

This commit is contained in:
Iuri Matias 2017-02-19 18:52:41 -05:00
parent a8193277da
commit 8b5e3aa3ab
2 changed files with 2 additions and 2 deletions

View File

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

View File

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