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