text: 'use strict';
  
  // require("./config/mongoDB")
  
  require('dotenv').config()
  const Glue = require('glue');
  const manifest = require('./config/manifest');
  
  if (!process.env.PRODUCTION) {
    manifest.registrations.push({
      "plugin": {
        "register": "blipp",
        "options": {}
      }
    });
  }
  
   
  Glue.compose(manifest, { relativeTo: __dirname }, (err, server) => {
    if (err) {
      console.log('server.register err:', err);
    }
  
    server.start(() => {
      console.log('✅  Server is listening on ' + server.info.uri.toLowerCase());
    });
  }); 
  