Skip to content

Migrating to 0.15.x

Matias Lescano edited this page Apr 28, 2015 · 4 revisions

At version 0.15.0 DemocracyOS had a refactor regarding the way it's configured.

BREAKING

Breaking changes with all previous versions has been introduced:

  • Configuration variables on .json files written with spaces were changed to camelCase. E.g.: like this to likeThis.
  • Environment variables now should be named exactly the same as the configuration at /config/defaults.json but CONSTANT_CASE. E.g.: mongoUrl should be MONGO_URL and notifications.url should be NOTIFICATIONS_URL.

More info: Configuring DemocracyOS

Migrating {environment}.json

Now, you're encouraged to override only the values needed, because /config/defaults.json has pretty good default ones.

I'd recommend you to delete/backup your /config/{environment}.json file and run make. It will create a new /config/{environment}.json file just for you. Then you can edit it and re-add all the old variables.

Migrating ENV variables

Here's a list of all the environment variables that were changed (OLD_NAME => NEW_NAME):

  • EXTERNAL_SIGNIN_URL => SIGNIN_URL
  • EXTERNAL_SIGNUP_URL => SIGNUP_URL
  • EXTERNAL_SETTINGS_URL => SETTINGS_URL
  • BASIC_USERNAME => AUTH_BASIC_USERNAME
  • BASIC_PASSWORD => AUTH_BASIC_PASSWORD
  • HTTPS_PORT => SSL_PORT
  • HTTPS_REDIRECT_MODE => SSL_REDIRECT