From d4b3768f6dfbee99a010c6f525789c28330dd150 Mon Sep 17 00:00:00 2001 From: Alexander Sadovsky Date: Wed, 5 Sep 2018 14:46:40 +0200 Subject: [PATCH] use sails.lower instead process.exit --- generateSwaggerFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generateSwaggerFile.js b/generateSwaggerFile.js index 50a4d1c..4a04d7e 100644 --- a/generateSwaggerFile.js +++ b/generateSwaggerFile.js @@ -16,5 +16,5 @@ mySailsApp.lift({ console.time('generateSwagger'); fs.writeFileSync('swagger.json', JSON.stringify(sails.hooks.swagger.doc, null, 2)); console.timeEnd('generateSwagger'); - process.exit(0); + sails.lower(); }) \ No newline at end of file