Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truffle migration doesn't work #18

Open
eshon opened this issue May 15, 2019 · 2 comments
Open

truffle migration doesn't work #18

eshon opened this issue May 15, 2019 · 2 comments

Comments

@eshon
Copy link
Owner

eshon commented May 15, 2019

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

@eshon
Copy link
Owner Author

eshon commented May 15, 2019

➤ Dalton L Brady commented:

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

@eshon
Copy link
Owner Author

eshon commented May 15, 2019

➤ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant