conference icon indicating copy to clipboard operation
conference copied to clipboard

truffle migration doesn't work

Open MrDataScientist opened this issue 8 years ago • 2 comments

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

MrDataScientist avatar Oct 27 '17 08:10 MrDataScientist

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

headygains avatar Oct 31 '17 15:10 headygains

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.

headygains avatar Oct 31 '17 16:10 headygains