code: function(app) {
    var filePath = path.join(app.getBase(), Constants.FILEPATH.SERVER_DIR, app.serverType, Constants.FILEPATH.LIFECYCLE);
    if(!fs.existsSync(filePath)) {
      return;
    }
    var lifecycle = require(filePath);
    for(var key in lifecycle) {
      if(typeof lifecycle[key] === 'function') {
        app.lifecycleCbs[key] = lifecycle[key];
      } else {
        logger.warn('lifecycle.js in %s is error format.', filePath);
      }
    }
  }
docs: Load lifecycle file.