Skip to content

Commit

Permalink
chore(deploy): refactored server creation and swaggerUI
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobernal2412 committed Dec 12, 2024
1 parent df4d921 commit 3a53595
Show file tree
Hide file tree
Showing 10 changed files with 3,023 additions and 7,949 deletions.
1 change: 1 addition & 0 deletions configurations/config.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ server:
httpOptionsOK: true
servePackageInfo: true
listenOnHttps: false
apiVersion: 7
statusBouncer: false
streaming: true
1 change: 1 addition & 0 deletions configurations/config.development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ server:
httpOptionsOK: true
servePackageInfo: true
listenOnHttps: false
apiVersion: 7
statusBouncer: false
streaming: true
1 change: 1 addition & 0 deletions configurations/config.testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,6 @@ server:
httpOptionsOK: true
servePackageInfo: true
listenOnHttps: false
apiVersion: 7
statusBouncer: false
streaming: true
24 changes: 0 additions & 24 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,3 @@ governify.init({
logger.info('Deploy successfully done');
});
});

// quit on ctrl-c when running docker in terminal
process.on('SIGINT', function onSigint () {
logger.info('Got SIGINT (aka ctrl-c in docker). Graceful shutdown ', new Date().toISOString());
shutdown();
});

// quit properly on docker stop
process.on('SIGTERM', function onSigterm () {
logger.info('Got SIGTERM (docker container stop). Graceful shutdown ', new Date().toISOString());
shutdown();
});

// shut down server
function shutdown () {
process.exit();
/* registry.undeploy(function (err) {
if (err) {
logger.error(err);
process.exitCode = 1;
}
process.exit();
}); */
}
Loading

0 comments on commit 3a53595

Please sign in to comment.