
var path = require('path');
// db config
exports.app = {
  port: 4000
}

exports.db = {
  host: "localhost",
  port: "27017",
  dbName: "yyper",
  options: {}
}

exports.post = {
  postDir: path.join(process.cwd(),'posts'),
  configFileName: 'postfile.json',
}

exports.session = {
  key: "",
  secret: ""
}

exports.cookie = {

}

exports.flexCombo = {
  options:{
    rootdir: path.join(__dirname, 'public'),
    filter: {
      "[\\.-]min\\.js$": ".min.js",
      "[\\.-]min\\.css$": ".min.css"
    },
    //supportedFIle: '\\.map',
    "charset": "utf-8",
    urls:{
    }
  }
}

@@ -26,28 +26,179 @@
 ');%0A
-// db config%0Aexports
+%0Avar dev = %7B%7D%0Avar pro = %7B%7D%0Aif (process.env.NODE_ENV == 'development')%7B%0A  module.exports = dev%0A%7D else %7B%0A  module.exports = pro%0A%7D%0A%0A// db config%0Apro.app = %7B%0A  port: 80%0A%7D%0A%0Adev
 .app
@@ -218,23 +218,29 @@
 4000%0A%7D%0A%0A
-exports
+%0Apro.db = dev
 .db = %7B%0A
@@ -313,23 +313,30 @@
 : %7B%7D%0A%7D%0A%0A
-exports
+pro.post = dev
 .post = 
@@ -420,23 +420,33 @@
 on',%0A%7D%0A%0A
-exports
+pro.session = dev
 .session
@@ -481,38 +481,60 @@
 %0A%7D%0A%0A
-exports.cookie = %7B%0A%0A%7D%0A%0Aexports
+pro.cookie =  dev.cookie = %7B%0A%0A%7D%0A%0Apro.flexCombo = dev
 .fle

add pro settings for app