q-koa 10.9.5 → 11.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/app.js +10 -5
- package/package.json +1 -1
package/core/app.js
CHANGED
|
@@ -254,7 +254,7 @@ class APP {
|
|
|
254
254
|
) {
|
|
255
255
|
this.app[appName].model.log.upsert(errorData)
|
|
256
256
|
}
|
|
257
|
-
if (
|
|
257
|
+
if (is_dev) {
|
|
258
258
|
console.log(err.stack)
|
|
259
259
|
}
|
|
260
260
|
throw new Error(err.message)
|
|
@@ -276,12 +276,17 @@ class APP {
|
|
|
276
276
|
'HH:mm:ss'
|
|
277
277
|
)} server is running at http://localhost:${this.port}`
|
|
278
278
|
)
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
if (is_dev) {
|
|
280
|
+
console.log(
|
|
281
|
+
`first app is http://localhost:3001/${appName}/setting/findOne`
|
|
282
|
+
)
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
const version = require('q-koa/package.json').version
|
|
286
|
+
console.log(chalk.green(`version: ${version}`))
|
|
282
287
|
})
|
|
283
288
|
|
|
284
|
-
if (
|
|
289
|
+
if (is_dev) {
|
|
285
290
|
if (
|
|
286
291
|
this.app[appName].service.model &&
|
|
287
292
|
this.app[appName].service.model.loadModel
|