This repository was archived by the owner on Jan 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathtruffle.js
More file actions
52 lines (50 loc) · 1.34 KB
/
truffle.js
File metadata and controls
52 lines (50 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// These are required to enable ES6 on tets
// and it's dependencies.
require('babel-register')({
ignore: /node_modules\/(?!zeppelin-solidity)/
});
require('babel-polyfill');
/*
* =====================
* To deploy in testnet:
* =====================
*
* Run this command:
* (ropsten)
* geth --testnet --rpc --rpcapi db,eth,net,web3,personal --rpcport 854x --rpcaddr 127.0.0.1 --rpccorsdomain "*" console --unlock "ownerAddr"
* or
* geth --fast --cache=1048 --testnet --unlock "0xmyaddress" --rpc --rpcapi "db,eth,net,web3,personal" --rpccorsdomain '*' --rpcaddr localhost --rpcport 854x
*
* (rinkeby)
* geth --rinkeby --rpc --rpcapi db,eth,net,web3,personal --rpcport 854x --rpcaddr 127.0.0.1 --rpccorsdomain "*" console --unlock 'ownerAddr'
*
* This will:
* 1) Start the local geth testnet node.
* 2) RPC it in localhost:8546
* 3) Interactively unlock the contract owner account.
*
* After the node starts and the account is unlocked, outside of geth, run:
* truffle migrate --network ropsten --reset
*
* */
module.exports = {
migrations_directory: "./migrations",
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*",
gas: 4000000
},
ropsten: {
host: "localhost",
port: 8546,
network_id: "3"
},
rinkeby: {
host: "localhost",
port: 8547,
network_id: "4"
}
}
};