You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
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:
Move ./config/app.json to ./truffle.json, where ./ the root of your project folder.
Rename the ./config directory 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.js files from ./environments/<name>/ to ./environments/<name>/contracts
If you have a ./build directory, move it to ./environments/development/build.
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!