Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

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.

Migrating your dapp

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:

  1. Move ./config/app.json to ./truffle.json, where ./ the root of your project folder.
  2. Rename the ./config directory to ./environments.
  3. For each environment (every folder in the new ./environments), do the following:
  4. Create a new folder at ./environments/<name>/contracts.
  5. Move all .sol.js files from ./environments/<name>/ to ./environments/<name>/contracts
  6. If you have a ./build directory, move it to ./environments/development/build.
  7. If you have a ./dist directory, move it to ./environments/production/dist.

And that's it! Bring up your questions in the gitter if you run into trouble!

Clone this wiki locally