Add the mongoUrl for production
/**
 * @file Defines the provider settings.
 *
 * Will set the path to Mongo, and applications id
 * Most of the configuration can be done using system environment variables.
 */

var salesforceApp = require('./salesforce_app.js');

// node_env can either be "development" or "production"
var node_env = process.env.NODE_ENV || "development";

// Port to run the app on. 8000 for development
// (Vagrant syncs this port)
// 80 for production
var default_port = 8000;
if(node_env === "production") {
  default_port = 80;
}

// Exports configuration for use by app.js
module.exports = {
  env: node_env,
  port: process.env.PORT || default_port,
  mongo_url: process.env.MONGOLAB_URI || process.env.MONGO_URL || ("mongodb://localhost/provider-salesforce-" + node_env),

  salesforce_org: salesforceApp,
  salesforce_callback: process.env.SALESFORCE_CALLBACK_URL,
  salesforce_connect: process.env.SALESFORCE_CONNECT_URL,

  cluestr_id: process.env.SALESFORCE_CLUESTR_ID,
  cluestr_secret: process.env.SALESFORCE_CLUESTR_SECRET,

  max_concurrency: process.env.SALESFORCE_MAX_CONCURRENCY || 1,
  workers: process.env.WORKERS || 2,
};
/**
 * @file Defines the provider settings.
 *
 * Will set the path to Mongo, and applications id
 * Most of the configuration can be done using system environment variables.
 */

var salesforceApp = require('./salesforce_app.js');

// node_env can either be "development" or "production"
var node_env = process.env.NODE_ENV || "development";

// Port to run the app on. 8000 for development
// (Vagrant syncs this port)
// 80 for production
var default_port = 8000;
if(node_env === "production") {
  default_port = 80;
}

// Exports configuration for use by app.js
module.exports = {
  env: node_env,
  port: process.env.PORT || default_port,
  mongo_url: process.env.MONGO_URL || ("mongodb://localhost/provider-salesforce-" + node_env),

  salesforce_org: salesforceApp,
  salesforce_callback: process.env.SALESFORCE_CALLBACK_URL,
  salesforce_connect: process.env.SALESFORCE_CONNECT_URL,

  cluestr_id: process.env.SALESFORCE_CLUESTR_ID,
  cluestr_secret: process.env.SALESFORCE_CLUESTR_SECRET,

  max_concurrency: process.env.SALESFORCE_MAX_CONCURRENCY || 1,
  workers: process.env.WORKERS || 2,
};