I'm trying to deploy a contract. When running: truffle.cmd migrate network --ropsten
I get the following error:
No network specified. Cannot determine current network.
Please help! Details are below
I've connected & unlocked my account in geth with:
geth --fast --cache=1048 --testnet --unlock "mycontractaddress" --rpc --rpcapi "eth,net,web3" --rpccorsdomain '' --rpcaddr localhost --rpcport 8545
Previously, I have synced with the entire blockchain*
My truffle.js file is:
module.exports = {
networks: {
localhost: {
host: "localhost",
port: 8545,
network_id: "*"
},
ropsten: {
host: "localhost",
port: 8545,
network_id: "3"
}
}
};
truffle.cmd migrate --network ropsten
?