728x90

Exiting: Review successful transactions manually by checking the transaction hashes above on Etherscan.

Error:  *** Deployment Failed ***
"Migrations" -- Returned error: ENOENT: no such file or directory

 

아까는 배포가 되었다가 안됐던 이유가

가나슈 네트워크 연결한 7545에서 테스트넷(Ropsten테스트 네트워크로 하면된다길래..) 해보겠다고 다른거로 바꿔놔서 그랬다.

network7545내가 만든네트워크임

 

배포명령어가 좀 다르긴한대 비슷비슷하네 명령어 정리 해보자

truffle migrate --network development

아까는 명령어 문제인가 싶어서 위에 껄로 하긴 했는데 이건상관없는 거였음( truffle migrate 평소대로 이거해도같음)

 

 

명령어

//truffle프로젝트 초기화
truffle init

//각 네트워크에 배포된 컨트랙트의 주소표시
truffle networks

//컨트랙트 배포
truffle deploy

//개발모드로 접속(ganache-cli실행)
truffle develop

//모든 명령목록, 특정명령에 대한 정보를 표시
truffle help

배포

 truffle migrate

재배포시 

 truffle migrate --reset

 

 

(truffle deploy is an alias for truffle migrate. They both do the same thing.

별칭같은 거래 둘이 같대.)

728x90

+ Recent posts