Skip to content

Commit f37bc46

Browse files
committed
fix specs; clarify production enviroment (livenet not production); exec testrpc directly
1 parent 53d8feb commit f37bc46

File tree

11 files changed

+27
-42
lines changed

11 files changed

+27
-42
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,9 @@ Working with different chains
459459
You can specify which environment to deploy to:
460460

461461

462-
```$ embark blockchain production```
462+
```$ embark blockchain livenet```
463463

464-
```$ embark run production```
464+
```$ embark run livenet```
465465

466466
The environment is a specific blockchain configuration that can be managed at config/blockchain.json
467467

@@ -474,7 +474,7 @@ The environment is a specific blockchain configuration that can be managed at co
474474
"rpcPort": 8545,
475475
"rpcCorsDomain": "http://localhost:8000",
476476
"account": {
477-
"password": "config/production/password"
477+
"password": "config/livenet/password"
478478
}
479479
},
480480
...
@@ -505,7 +505,7 @@ Deploying to IPFS and Swarm
505505
======
506506

507507
To deploy a dapp to IPFS, all you need to do is run a local IPFS node and then run ```embark upload ipfs```.
508-
If you want to deploy to the livenet then after configuring you account on ```config/blockchain.json``` on the ```production``` environment then you can deploy to that chain by specifying the environment ```embark ipfs production```.
508+
If you want to deploy to the livenet then after configuring you account on ```config/blockchain.json``` on the ```livenet``` environment then you can deploy to that chain by specifying the environment ```embark ipfs livenet```.
509509

510510
To deploy a dapp to SWARM, all you need to do is run a local SWARM node and then run ```embark upload swarm```.
511511

boilerplate/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules/
33
dist/
44
config/production/password
5+
config/livenet/password

boilerplate/config/blockchain.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"rpcPort": 8545,
2525
"rpcCorsDomain": "http://localhost:8000",
2626
"account": {
27-
"password": "config/production/password"
27+
"password": "config/livenet/password"
2828
}
2929
},
3030
"privatenet": {

demo/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules/
33
dist/
44
config/production/password
5+
config/livenet/password

demo/config/blockchain.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"rpcPort": 8545,
2525
"rpcCorsDomain": "http://localhost:8000",
2626
"account": {
27-
"password": "config/production/password"
27+
"password": "config/livenet/password"
2828
}
2929
},
3030
"privatenet": {

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"license": "ISC",
1111
"homepage": "",
1212
"devDependencies": {
13-
"embark": "^2.2.1",
13+
"embark": "../",
1414
"mocha": "^2.2.5"
1515
}
1616
}

docs/deploying-to-ipfs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ Deploying to IPFS
44
To deploy a dapp to IPFS, all you need to do is run a local IPFS node
55
and then run ``embark upload ipfs``. If you want to deploy to the livenet then
66
after configuring you account on ``config/blockchain.json`` on the
7-
``production`` environment then you can deploy to that chain by
8-
specifying the environment ``embark ipfs production``.
7+
``livenet`` environment then you can deploy to that chain by
8+
specifying the environment ``embark ipfs livenet``.

docs/working-with-different-chains.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Working with different chains
33

44
You can specify which environment to deploy to:
55

6-
``$ embark blockchain production``
6+
``$ embark blockchain livenet``
77

8-
``$ embark run production``
8+
``$ embark run livenet``
99

1010
The environment is a specific blockchain configuration that can be
1111
managed at config/blockchain.json
@@ -20,7 +20,7 @@ managed at config/blockchain.json
2020
"rpcPort": 8545,
2121
"rpcCorsDomain": "http://localhost:8000",
2222
"account": {
23-
"password": "config/production/password"
23+
"password": "config/livenet/password"
2424
}
2525
},
2626
...

lib/cmd.js

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,30 +101,9 @@ Cmd.prototype.simulator = function() {
101101
.command('simulator')
102102
.description('run a fast ethereum rpc simulator')
103103
.option('--testrpc', 'use testrpc as the rpc simulator [default]')
104-
.option('--ethersim', 'use ethersim as the rpc simulator')
105104
.action(function(options) {
106-
var Sim;
107-
108-
if (options.ethersim) {
109-
try {
110-
Sim = require('ethersim');
111-
} catch(e) {
112-
console.log('EtherSim not found; Please install it with "npm install ethersim --save"');
113-
console.log('For more information see https://github.com/iurimatias/ethersim');
114-
process.exit(1);
115-
}
116-
Sim.startServer();
117-
}
118-
else {
119-
try {
120-
Sim = require('ethereumjs-testrpc');
121-
} catch(e) {
122-
console.log('TestRPC not found; Please install it with "npm install -g ethereumjs-testrpc');
123-
console.log('For more information see https://github.com/ethereumjs/testrpc');
124-
process.exit(1);
125-
}
126-
exec('testrpc');
127-
}
105+
//console.log('TestRPC not found; Please install it with "npm install -g ethereumjs-testrpc');
106+
exec('testrpc');
128107
});
129108
};
130109

lib/template_generator.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ var wrench = require('wrench');
66
var run = function(cmd) {
77
var result = exec(cmd, {silent: true});
88
if (result.code !== 0) {
9-
console.log(result.stderr);
9+
console.log("error doing.. " + cmd);
10+
console.log(result.output);
11+
if (result.stderr !== undefined) {
12+
console.log(result.stderr);
13+
}
1014
exit();
1115
}
1216
};

0 commit comments

Comments
 (0)