eshon / conference

A simple Ethereum smart contract + DApp example
175 stars 106 forks source link

truffle migration doesn't work #20

Open MrDataScientist opened 6 years ago

MrDataScientist commented 6 years ago

I got an error : Error: No Network specified. can not determine current network.

headygains commented 6 years ago

Also receiving this error, I'll let you know if I solve it.

headygains commented 6 years ago

Alright, I've figured out how to get migrations to function properly. Not sure why the rpc in the truffle.js configuration file was not working properly. But I've commented it out and included a networks reference in it's place here's a link to the my version of the file. Here's the truffle documentation I used to fix the issue.

EDIT: run the migration from the project source directory using // truffle migrate --network development

development is what i named my network in the truffle.js configuration file referenced in the Gist above.