Skip to content

Commit

Permalink
修改图标
Browse files Browse the repository at this point in the history
  • Loading branch information
iamllitog committed Jun 5, 2018
1 parent 26d1b48 commit d6f0009
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
{ hid: 'description', name: 'description', content: '网络直播平台爬虫' }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
{ rel: 'icon', href: '/favicon.ico' }
]
},
router: {
Expand Down
26 changes: 13 additions & 13 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@ const { serverConfig } = require('./config')
* 爬虫任务 + 爬虫后日志分析
*
*/
// function timer () {
// searchEngin()
// .then(() => statistics.collect())
// .then(() => {
// setTimeout(() => {
// timer()
// }, 60 * 1000 * 10)
// })
// }
// timer()
function timer () {
searchEngin()
.then(() => statistics.collect())
.then(() => {
setTimeout(() => {
timer()
}, 60 * 1000 * 10)
})
}
timer()

/**
* 分析定时任务
*/
// schedule.scheduleJob('0 10 0 * * *', () => {
// statistics.timeTask()
// })
schedule.scheduleJob('0 10 0 * * *', () => {
statistics.timeTask()
})

var app = express()

Expand Down

0 comments on commit d6f0009

Please sign in to comment.