We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a32171 commit e0b444eCopy full SHA for e0b444e
packages/react-scripts/scripts/start.js
@@ -84,6 +84,14 @@ choosePort(HOST, DEFAULT_PORT)
84
console.log(chalk.cyan('Starting the development server...\n'));
85
openBrowser(urls.localUrlForBrowser);
86
});
87
+
88
+ ['SIGINT', 'SIGTERM'].forEach(function(sig) {
89
+ process.on(sig, function() {
90
+ console.log(`Gracefully shutting down server after ${sig}...`);
91
+ server.close();
92
+ process.exit();
93
+ });
94
95
})
96
.catch(err => {
97
if (err && err.message) {
0 commit comments