app.js 495 Bytes
'use strict';

const express = require('express');
const config = require('./config/config');
const yohoLib = require('yoho-node-lib');

// 全局注册library
yohoLib.global(config);

const logger = global.yoho.logger;
const app = express();
const seo = require('./apps/seo');

// 定时任务 主动推送和生成xml
seo.start();

// 提供sitemap给搜索百度访问
app.use(express.static(config.sitemapPath));

app.listen(config.port, function() {
    logger.info('yoho seo start');
});