Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duiba-tiny-image-node
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
duiba-tiny-image-node
Commits
ba859afa
Commit
ba859afa
authored
Nov 06, 2020
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
ff223d87
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
index.js
dist/index.js
+8
-6
index.js.map
dist/index.js.map
+1
-1
index.ts
src/index.ts
+2
-2
No files found.
dist/index.js
View file @
ba859afa
...
...
@@ -4,6 +4,7 @@
*/
Object
.
defineProperty
(
exports
,
"__esModule"
,
{
value
:
true
});
const
restify
=
require
(
'restify'
);
const
eureka_1
=
require
(
"./eureka"
);
const
logger_1
=
require
(
"./logger"
);
const
api_1
=
require
(
"./api"
);
let
[
_
,
__
,
portStr
=
'8090'
]
=
process
.
argv
;
...
...
@@ -34,12 +35,13 @@ process.on("SIGTERM", () => {
},
6000
);
});
server
.
listen
(
port
,
async
function
()
{
/*try {
eureka = await getEurekaClient(port);
logger.info('eureka register success');
} catch (e) {
logger.error(e.name);
}*/
try
{
eureka
=
await
eureka_1
.
getEurekaClient
(
port
);
logger_1
.
default
.
info
(
'eureka register success'
);
}
catch
(
e
)
{
logger_1
.
default
.
error
(
e
.
name
);
}
logger_1
.
default
.
info
(
'%s listening at %s'
,
server
.
name
,
server
.
url
);
});
//# sourceMappingURL=index.js.map
\ No newline at end of file
dist/index.js.map
View file @
ba859afa
{"version":3,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IAClC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAa,CAAC,EAAE;QACjD,gBAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;KACrB;IACD,OAAO,IAAI,EAAE,CAAC;AACf,CAAC,CAAC,CAAC;AAEH,aAAQ,CAAC,MAAM,CAAC,CAAC;AAEjB,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAAG,EAAE,EAAE;IACvC,gBAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE;IAC1B,MAAM,CAAC,IAAI,EAAE,CAAC;IACd,UAAU,CAAC,GAAG,EAAE;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IAChB,CAAC,EAAE,IAAI,CAAC,CAAC;AACV,CAAC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK;IACxB,IAAI;QACH,MAAM,GAAG,MAAM,wBAAe,CAAC,IAAI,CAAC,CAAC;QACrC,gBAAM,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;KACvC;IAAC,OAAO,CAAC,EAAE;QACX,gBAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;KACrB;IACD,gBAAM,CAAC,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC"}
\ No newline at end of file
src/index.ts
View file @
ba859afa
...
...
@@ -42,12 +42,12 @@ process.on("SIGTERM", () => {
});
server
.
listen
(
port
,
async
function
()
{
/*
try {
try
{
eureka
=
await
getEurekaClient
(
port
);
logger
.
info
(
'eureka register success'
);
}
catch
(
e
)
{
logger
.
error
(
e
.
name
);
}
*/
}
logger
.
info
(
'%s listening at %s'
,
server
.
name
,
server
.
url
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment