You are viewing a single comment's thread from:

RE: Truffle实战指南

in #starnote5 years ago

ganache本质是一个使用javascript实现的以太坊客户端。
缺点:只存在于内存,一重启数据全没!

cnpm install ganache-cli -g
ganache-cli

配置truffle:
module.exports = {
  networks: {
    ganachenet: {
      host:"127.0.0.1",
      port:8545,
      network_id:"*"
    }
  }
};

truffle compile
truffle migrate --network ganachenet  //布署到指定网络