eshon / ol3buildr

0 stars 0 forks source link

truffle migration doesn't work #18

Open eshon opened 5 years ago

eshon commented 5 years ago

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

eshon commented 5 years ago

➤ Dalton L Brady commented:

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

eshon commented 5 years ago

➤ Dalton L Brady commented:

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 ( https://gist.github.com/headygains/fd578fdcedc4c33e25a6776025d6e3ab ). Here's the truffle documentation I used to fix the issue ( http://truffleframework.com/tutorials/upgrading-from-truffle-2-to-3#first-things-first-configuration ).

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.