1 starter

  1. startServer()
  2. require(options, framework)

2 framework

  1. createInstance()
  2. loader,【3loader, loadRouter()之后返回到 framework】
    1. app.ready()
    2. http.createServer()
      1. server
      2. didReady
      3. egg-ready
      4. serverDidReady

3 loader

  1. constructor
  2. loader

constructor

  1. getEggPaths()
    1. loop
    2. prototype
    3. chain Egg#path
  2. getServerEnv()
  3. getAppInfo()

loader

  1. loadPLugin()
    1. loop EggPaths
  2. loadConfig()
    1. loop loadUnits
  3. this.loader.load()
  4. load*Extend()
  5. loadCustomLoader()
  6. loadCusomApp()
    1. configWillLoad
    2. configDidLoad
  7. loadService()
  8. loadMIddleware()
  9. loadController()
  10. loadRouter()
    1. didLoad
    2. willReady