将favicon.ico 放到public外面,因为发布系统现在会过滤掉public文件夹
Showing
2 changed files
with
1 additions
and
1 deletions
@@ -64,7 +64,7 @@ app.use(global.yoho.hbs({ | @@ -64,7 +64,7 @@ app.use(global.yoho.hbs({ | ||
64 | 64 | ||
65 | app.use(global.yoho.middleware()); | 65 | app.use(global.yoho.middleware()); |
66 | 66 | ||
67 | -app.use(favicon(path.join(__dirname, '/public/favicon.ico'))); | 67 | +app.use(favicon(path.join(__dirname, '/favicon.ico'))); |
68 | app.use(express.static(path.join(__dirname, 'public'))); | 68 | app.use(express.static(path.join(__dirname, 'public'))); |
69 | app.use(bodyParser.json()); | 69 | app.use(bodyParser.json()); |
70 | app.use(bodyParser.urlencoded({ | 70 | app.use(bodyParser.urlencoded({ |
No preview for this file type
-
Please register or login to post a comment