-
Notifications
You must be signed in to change notification settings - Fork 86
Migrate from 2.x to 3.0
Leonardo Crauss Daronco edited this page Mar 6, 2017
·
3 revisions
THIS IS A DRAFT
The configuration files moved from:
-
config/setup_conf.yml
: Application configurations and seed data. -
config/database.yml
: Database configurations.
To:
-
config/seeds.yml
: Seed data only. - Environment variables or
.env.*
files: Application configurations, including database..env
is used in all environments, while.env.development
is used only in development,.env.test
only in test, and.env.production
only in production. If you don't want to use.env
files you can simply set the environment variables when running the application.
Open the new files and move the configurations from the old files accordingly.
If you don't want to replace config/seeds.yml
, you can create a config/seeds.local.yml
, that will take precedence when loading configurations. The same works for .env
files, you can have .env.production.local
, for example.
All local files are excluded from git, so use them for configurations only necessary for your local machine when developing or your server when deploying.
To see all available configurations, look at .env.development
.
This is the technical documentation for Mconf-Web, a component of Mconf. Read more about the project and try it out at mconf.org.
- Home
- Releases
- Changelog
- FAQ
- Translating the application
- Latest stable version (2.x.x)
- Development version (from branch
master
) - Previous version (0.8.x)