Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
71276834d9f57d5ccf684a75f1fddbc1dec48993
1 parent
520cc8a2
fix gitlib
#1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
app.js
app.js
View file @
7127683
...
...
@@ -36,6 +36,8 @@ app.locals.version = pkg.version;
// 指定libray目录
global
.
library
=
path
.
resolve
(
'./library/'
);
const
logger
=
require
(
global
.
library
+
'logger'
);
app
.
set
(
'view engine'
,
'.hbs'
);
app
.
use
(
favicon
(
path
.
join
(
__dirname
,
'/public/favicon.ico'
)));
...
...
@@ -88,7 +90,11 @@ app.use((req, res, next) => {
});
// dispatcher
require
(
'./dispatch'
)(
app
);
try
{
require
(
'./dispatch'
)(
app
);
}
catch
(
e
){
logger
.
error
(
e
);
}
// listener
app
.
listen
(
config
.
port
,
function
()
{
...
...
Please
register
or
login
to post a comment