-
Notifications
You must be signed in to change notification settings - Fork 616
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 changes with all previous versions has been introduced:
- Configuration variables on
.json
files written with spaces were changed to camelCase. E.g.:like this
tolikeThis
. - Environment variables now should be named exactly the same as the configuration at
/config/defaults.json
butCONSTANT_CASE
. E.g.:mongoUrl
should beMONGO_URL
andnotifications.url
should beNOTIFICATIONS_URL
.
More info: Configuring DemocracyOS
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.
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
Visit our official website - Developed by Democracia en Red and contributors from the world over!