Description
I read this recently: http://12factor.net/config
It suggests not using environment variables for anything that isn't going to change between development and production environments.
Probably in practise that would mean these would stay as env vars:
PARSE_SERVER_APPLICATION_ID
PARSE_SERVER_MASTER_KEY
PORT
PARSE_SERVER_DATABASE_URI
PARSE_SERVER_COLLECTION_PREFIX
PARSE_SERVER_URL
PARSE_PUBLIC_SERVER_URL
PARSE_SERVER_CLIENT_KEY
PARSE_SERVER_JAVASCRIPT_KEY
PARSE_SERVER_REST_API_KEY
PARSE_SERVER_DOT_NET_KEY
PARSE_SERVER_PUSH
PARSE_SERVER_FILE_KEY
PARSE_SERVER_FACEBOOK_APP_IDS
And these would become set in code/command line flags only:
PARSE_SERVER_DATABASE_OPTIONS
PARSE_SERVER_CLOUD_CODE_MAIN
PARSE_SERVER_OAUTH_PROVIDERS
PARSE_SERVER_ENABLE_ANON_USERS
PARSE_SERVER_ALLOW_CLIENT_CLASS_CREATION
PARSE_SERVER_FILES_ADAPTER
PARSE_SERVER_EMAIL_ADAPTER
PARSE_SERVER_VERIFY_USER_EMAILS
PARSE_SERVER_APP_NAME
PARSE_SERVER_CUSTOM_PAGES
PARSE_SERVER_MAX_UPLOAD_SIZE
PARSE_SERVER_SESSION_LENGTH
VERBOSE
PARSE_SERVER_REVOKE_SESSION_ON_PASSWORD_RESET
PARSE_SERVER_LIVE_QUERY_OPTIONS
PARSE_SERVER_LOGGER_ADAPTER
PARSE_SERVER_MOUNT_PATH
Then for future settings we would decided on a case-by-case basis whether to add env vars for them or not.
Thoughts?