<file_sep>var path = require('path'),
    rootPath = path.normalize(__dirname + '/..'),
    env = process.env.NODE_ENV || 'production';
console.log('NODE_ENV == ',env)
var config = {
  //开发者环境配置
  development: {
      root        : rootPath,
      port        : 8011,
      maxOrderTime: 1080,
      app      : {
		name : 'foowala-test'
      },
      main     : {
        languagePath: rootPath + '/language/'
      },
      cookie   : {
        secret     : 'foowala',
        sessionName: 'session'
      }
  },

  // 测试环境配置
  test: {
    root        : rootPath,
    port        : 8011,
    maxOrderTime: 1080,
    app : {
        name: 'foowala-test'
    },
    main: {
      languagePath: rootPath + '/language/'
    },
    cookie   : {
      secret     : 'foowala',
      sessionName: 'session'
    }
  },
  // 线上产品配置
  production: {
    root        : rootPath,
    port        : 8011,
    maxOrderTime: 1080,
    app       : {
        name: 'foowala'
    },
    main: {
      languagePath: rootPath + '/language/'
    },
    cookie   : {
      secret     : 'foowala',
      sessionName: 'session'
    }
  }
};

module.exports = config[env];
