Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
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
陈峰
7 years ago
Commit
b6f9b33944f99963da4bb5c4fd649c3b49c95e66
1 parent
6d232ba6
commit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
create-app.js
process.json
create-app.js
View file @
b6f9b33
...
...
@@ -119,16 +119,17 @@ exports.createApp = async (app) => {
// YOHO 后置中间件
app
.
use
(
errorHanlder
.
serverError
());
// listener
app
.
listen
(
config
.
port
,
function
()
{
logger
.
info
(
`
worker
is
started
at
$
{
config
.
port
}
`
);
});
}
catch
(
err
)
{
if
(
err
.
code
===
9999
)
{
logger
.
error
(
err
);
throw
JSON
.
stringify
(
err
);
process
.
abort
(
);
}
logger
.
error
(
err
);
}
// listener
app
.
listen
(
config
.
port
,
function
()
{
logger
.
info
(
`
worker
is
started
at
$
{
config
.
port
}
`
);
});
};
...
...
process.json
View file @
b6f9b33
...
...
@@ -3,7 +3,7 @@
{
"name"
:
"yohoblk-wap"
,
"script"
:
"app.js"
,
"instances"
:
"
max
"
,
"instances"
:
"
4
"
,
"exec_mode"
:
"cluster"
,
"merge_logs"
:
true
,
"log_date_format"
:
"YYYY-MM-DD HH:mm:ss Z"
,
...
...
Please
register
or
login
to post a comment