3

I want to know when deploying smart contract using truffle, is there a way to do that without using the migration files?
I won't be requiring the Migration features.

2
  • Do you want to avoid using truffle migrate at all or do you want to avoid having Migration.sol contract?
    – ivicaa
    Sep 11, 2018 at 9:35
  • I want to avoid deploying Migration.sol Sep 11, 2018 at 12:10

1 Answer 1

0

You can use the -f parameter to start at an arbitrary migration step. In this case, the Migration contract will be ignored.

See https://truffleframework.com/docs/truffle/reference/truffle-commands#migrate and https://github.com/trufflesuite/truffle/issues/503

2
  • -f parameter is not helping. Still 2 contracts are being created. Sep 11, 2018 at 12:21
  • Just tested it on my side. It works. I can deploy without a reference to the Migration contract. Did you delete the build folder before the test?
    – ivicaa
    Sep 11, 2018 at 12:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.