This repository was archived by the owner on Feb 26, 2024. It is now read-only.
-
Couldn't load subscription status.
- Fork 2.3k
Migrating from v0.2.x to v0.3.0
Tim Coulter edited this page Jan 6, 2016
·
3 revisions
Truffle v0.3.0 reorganizes the structure of your dapp, allowing you to better manage built versions of your dapp per environment. It also changes the location of the configuration file to help comprehension, which will allow for helpful features in the future.
None of your configuration needs to change. However, you will have to move files and folders around in order to get your dapp up to speed. What you'll need to do:
- Move
./config/app.jsonto./truffle.json, where./the root of your project folder. - Rename the
./configdirectory to./environments. - For each environment (every folder in the new
./environments), do the following: - Create a new folder at
./environments/<name>/contracts. - Move all
.sol.jsfiles from./environments/<name>/to./environments/<name>/contracts - If you have a
./builddirectory, move it to./environments/development/build. - If you have a
./distdirectory, move it to./environments/production/dist.
And that's it! Bring up your questions in the gitter if you run into trouble!