We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebcbc36 commit 77c153bCopy full SHA for 77c153b
api/app.js
@@ -85,6 +85,13 @@ swaggerTools.initializeMiddleware(swaggerConfig, async function (middleware) {
85
next();
86
});
87
88
+ // Counterintuitively, we crash because we don't want the pod hanging around. Let's just spin up
89
+ // a new pod incase the mongo topology was destroyed, among other things.
90
+ process.on('unhandledRejection', function(reason) {
91
+ console.log("Unhandled Rejection:", reason);
92
+ process.exit(1);
93
+ });
94
+
95
// Ensure uploads directory exists, otherwise create it.
96
try {
97
if (!fs.existsSync(UPLOAD_DIR)) {
0 commit comments