config/production.js
/**
 * @brief This function sets up the application development configuration.
 *
 * @return object development configuration.
 */
@brief This function sets up the application development configuration.
@return object development configuration.
@brief This function sets up the application development configuration . @return object development configuration .
function initializeProdConfig() {
    'use strict';
    return Object.freeze({
        URL: "https://" + process.env.OPENSHIFT_APP_DNS,
        PORT: process.env.OPENSHIFT_NODEJS_PORT,
        IP_ADDRESS: process.env.OPENSHIFT_NODEJS_IP,
        LOG_LEVEL: process.env.LOG_LEVEL,
        db: {
            DB_ADDRESS: process.env.OPENSHIFT_MONGODB_DB_URL
                    + process.env.TTT_DB_NAME
        },
        slack: {
            SLACK_API_TOKEN: process.env.SLACK_API_TOKEN,
            TTT_COMMAND_TOKEN: process.env.TTT_COMMAND_TOKEN
        },
        locales: {
            US_EN: "US_EN"
        },
        locale: "US_EN"
    });
}
function initializeProdConfig ( ) { 'use strict' ; return Object . freeze ( { URL : "https://" + process . env . OPENSHIFT_APP_DNS , PORT : process . env . OPENSHIFT_NODEJS_PORT , IP_ADDRESS : process . env . OPENSHIFT_NODEJS_IP , LOG_LEVEL : process . env . LOG_LEVEL , db : { DB_ADDRESS : process . env . OPENSHIFT_MONGODB_DB_URL + process . env . TTT_DB_NAME } , slack : { SLACK_API_TOKEN : process . env . SLACK_API_TOKEN , TTT_COMMAND_TOKEN : process . env . TTT_COMMAND_TOKEN } , locales : { US_EN : "US_EN" } , locale : "US_EN" } ) ; }
@brief This function sets up the application development configuration.
@brief This function sets up the application development configuration .
// Express server port // Express server address // Default log level // Database config // mongodb address // Slack related config // API token // /ttt command token