diff --git a/bin/embark b/bin/embark index 2cd96aef3..11ff3d791 100644 --- a/bin/embark +++ b/bin/embark @@ -66,8 +66,9 @@ program.command('demo').description('create a working dapp with a SimpleStorage var targetDir = "./embark_demo"; wrench.copyDirSyncRecursive(boilerPath, targetDir); - wrench.copyDirSyncRecursive(demoPath + "/app", targetDir + "/app", {forceDelete: true}); - wrench.copyDirSyncRecursive(demoPath + "/spec", targetDir + "/spec", {forceDelete: true}); + wrench.copyDirSyncRecursive(demoPath + "/app", targetDir + "/app", {forceDelete: true}); + wrench.copyDirSyncRecursive(demoPath + "/config", targetDir + "/config", {forceDelete: true}); + wrench.copyDirSyncRecursive(demoPath + "/spec", targetDir + "/spec", {forceDelete: true}); cd(targetDir); run('npm install'); diff --git a/demo/config/blockchain.yml b/demo/config/blockchain.yml new file mode 100644 index 000000000..10c49900a --- /dev/null +++ b/demo/config/blockchain.yml @@ -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: diff --git a/demo/config/contracts.yml b/demo/config/contracts.yml new file mode 100644 index 000000000..2b6d25d66 --- /dev/null +++ b/demo/config/contracts.yml @@ -0,0 +1,8 @@ +development: + SimpleStorage: + args: + - 100 +staging: + SimpleStorage: + args: + - 100 diff --git a/demo/config/password b/demo/config/password new file mode 100644 index 000000000..c747d679e --- /dev/null +++ b/demo/config/password @@ -0,0 +1 @@ +dev_password diff --git a/demo/config/server.yml b/demo/config/server.yml new file mode 100644 index 000000000..2b9fa0014 --- /dev/null +++ b/demo/config/server.yml @@ -0,0 +1,2 @@ +host: localhost +port: 8000