solidity – Truffle Dapp Only Works with `truffle migrate –reset`

dapp-debuggingmigrationsoliditytruffle

When I first load my Dapp with testrpc the functionality doesn't work until I use the command truffle migrate --reset

Any ideas why?

Best Answer

This is because truffle remembers previous migrations you made but you are on a new test network. You can see registered contract addresses by running truffle networks.

You can delete these informations by running truffle networks --clean before truffle migrate.