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.
1 Answer
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
-
-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?– ivicaaSep 11, 2018 at 12:26
truffle migrate
at all or do you want to avoid having Migration.sol contract?