I am stuck with an issue as unable to deploying Truffle Contracts to Rinkeby network! As shown here it's using network 'development'? why? I want Rinkeby!
ASMAHANs-MacBook-Pro:project-6 asmahan$ truffle compile
ASMAHANs-MacBook-Pro:project-6 asmahan$ truffle migrate network rinkeby
Using network 'development'.
Network up to date.
I made sure I installed both of the web3, truffle, infura and MetaMask. here is truffle.js file
const HDWalletProvider = require("truffle-hdwallet-provider");
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
rinkeby: {
provider: function () {
return new HDWalletProvider("mus***********tuff sustain",
"rinkeby.infura.io/v3/********")
},
network_id: '4',
gas: 4500000,
gasPrice: 10000000000,
}
}
};