update demo

This commit is contained in:
Iuri Matias 2015-06-19 10:27:19 -04:00
parent 13b7a9f2e5
commit 79db42544a
5 changed files with 37 additions and 2 deletions

View File

@ -66,8 +66,9 @@ program.command('demo').description('create a working dapp with a SimpleStorage
var targetDir = "./embark_demo"; var targetDir = "./embark_demo";
wrench.copyDirSyncRecursive(boilerPath, targetDir); wrench.copyDirSyncRecursive(boilerPath, targetDir);
wrench.copyDirSyncRecursive(demoPath + "/app", targetDir + "/app", {forceDelete: true}); wrench.copyDirSyncRecursive(demoPath + "/app", targetDir + "/app", {forceDelete: true});
wrench.copyDirSyncRecursive(demoPath + "/spec", targetDir + "/spec", {forceDelete: true}); wrench.copyDirSyncRecursive(demoPath + "/config", targetDir + "/config", {forceDelete: true});
wrench.copyDirSyncRecursive(demoPath + "/spec", targetDir + "/spec", {forceDelete: true});
cd(targetDir); cd(targetDir);
run('npm install'); run('npm install');

View File

@ -0,0 +1,23 @@
development:
rpc_host: localhost
rpc_port: 8101
rpc_whitelist: "*"
minerthreads: 1
datadir: /tmp/embark
mine_when_needed: true
gas_limit: 100000
gas_price: 10000000000000
console: false
account:
init: true
password: config/password
staging:
rpc_host: localhost
rpc_port: 8101
rpc_whitelist: "*"
datadir: default
network_id: 0
console: true
account:
init: false
address:

View File

@ -0,0 +1,8 @@
development:
SimpleStorage:
args:
- 100
staging:
SimpleStorage:
args:
- 100

1
demo/config/password Normal file
View File

@ -0,0 +1 @@
dev_password

2
demo/config/server.yml Normal file
View File

@ -0,0 +1,2 @@
host: localhost
port: 8000