xiami/webapp/Xiami.js
function(cb) {
        var self = this
        //set mainHtml
        mainHtmlCache = fs.readFileSync(config.get('main_path'))
        self.emit("STARTUP")
        self.httpServer.listen(this.getConfig("port"), Meteor.bindEnvironment(function() {
            Log.info('xiami server listeing at ' + self.getConfig('port'))
            self.emit('STARTED')
            self.isStarted = true
            cb && cb()
        }))
    }
function(cb) {
        var self = this
        //set mainHtml
        mainHtmlCache = fs.readFileSync(config.get('main_path'))
        self.emit("STARTUP")
        self.httpServer.listen(this.getConfig("port"), Meteor.bindEnvironment(function() {
            Log.info('xiami server listeing at ' + self.getConfig('port'))
            self.emit('STARTED')
            self.isStarted = true
            cb && cb()
        }))
    }
function ( cb ) { var self = this //set mainHtml mainHtmlCache = fs . readFileSync ( config . get ( 'main_path' ) ) self . emit ( "STARTUP" ) self . httpServer . listen ( this . getConfig ( "port" ) , Meteor . bindEnvironment ( function ( ) { Log . info ( 'xiami server listeing at ' + self . getConfig ( 'port' ) ) self . emit ( 'STARTED' ) self . isStarted = true cb && cb ( ) } ) ) }
start the server
start the server