index.js 393 B

12345678910111213
  1. // // for pro : built version, use node to start
  2. // let config = require('./bin/config.js')
  3. // config.FileDir.root = __dirname || '/'
  4. //
  5. // let server = require('./bin/main.js')
  6. // server.start()
  7. // for dev : srouce version, use babel-node to start
  8. let config = require('./src/config/appconfig.js')
  9. config.FileDir.root = __dirname || '/'
  10. let server = require('./src/main.js')
  11. server.start()