* run in worker * @param {Object} argv
(argv)
| 163 | * @param {Object} argv |
| 164 | */ |
| 165 | runInWorker(argv) { |
| 166 | return think.beforeStartServer().catch(err => { |
| 167 | think.logger.error(err); |
| 168 | }).then(() => { |
| 169 | const instance = this._getWorkerInstance(argv); |
| 170 | return instance.startServer(); |
| 171 | }).then(() => { |
| 172 | think.app.emit('appReady'); |
| 173 | }); |
| 174 | } |
| 175 | /** |
| 176 | * command line invoke |
| 177 | */ |
no test coverage detected