Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 988 Bytes

10-deploy.md

File metadata and controls

42 lines (38 loc) · 988 Bytes

Deploy

start rinkey node

geth \
    --rinkeby \
    --rpc \
    --rpcapi="personal,eth,network,web3,net" \
    --ipcpath "~/Library/Ethereum/geth.ipc" \
    --rpccorsdomain "*"

request faucet found here

modify truffle.js

 module.exports = {
     // See <http://truffleframework.com/docs/advanced/configuration>
     // for more about customizing your Truffle configuration!
     networks: {
         development: {
             host: "127.0.0.1",
             port: 9545,
              network_id: "*" // Match any network id
+         },
+         rinkeby: {
+             host: "127.0.0.1",
+             port: 8545,
+             network_id: "4",
+             gas: 5000000,  // gas for migration
+             from: "0x0d6eafe9ca0258b97839b07230a7ea8fa61b632a"
          }
     }
 };

migrate

truffle migrate --network rinkeby