let fs = require("fs");
let winston = require("winston");
let logger = require("../logger");
let env = process.env;

logger.configure({
    level: 'verbose',
    transports: [
      new (winston.transports.Console)()
    ]
  });

module.exports = {
  server: {
    port: env.NODE_PORT,
    ip: env.NODE_IP
  },

  authentication: {
    passphrase: "MY-PASS-PHRASE-FOR-PROJECT-MANAGER-wd871623746173264716287346",
    options: {session: true}
  },

  database : {
    database: "project-manager",
    username: "",
    password: "",
    options: {
      dialect: "sqlite",
      storage: "project-manager.sqlite",
      logging: (sql) => {
        logger.info(`[${new Date()}] ${sql}`);
      },
      define: {
        freezeTableName: true,
        timestamps: false,
        underscored: true,
      }
    }
  }

};

@@ -498,80 +498,206 @@
 se: 
-%22project-manager%22,%0D%0A    username: %22%22,%0D%0A    password: %22%22,%0D%0A    options: %7B
+env.NODE_DATABASE_NAME,%0D%0A    username: env.NODE_DATABASE_USER,%0D%0A    password: env.NODE_DATABASE_USER_PASSWORD,%0D%0A    options: %7B%0D%0A      host: env.NODE_DATABASE_HOST%0D%0A      port: env.NODE_DATABASE_PORT
 %0D%0A  
@@ -710,22 +710,24 @@
 alect: %22
-sqlite
+postgres
 %22,%0D%0A    
@@ -732,41 +732,79 @@
     
-storage: %22project-manager.sqlite%22
+pool: %7B%0D%0A        max: 5,%0D%0A        min: 0,%0D%0A        idle: 10000%0D%0A      %7D
 ,%0D%0A 
@@ -833,24 +833,26 @@
  %7B%0D%0A        
+//
 logger.info(

add config by heroku