Skip to content

Commit dc5b6df

Browse files
committed
fix: handle nginx signal process started
1 parent 5df6926 commit dc5b6df

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

cli/commands/setup/nginx.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ class NginxCommand extends Command {
9292
})
9393

9494
executeCommands.stderr.on('data', (data) => {
95-
this.error(chalk.red(data.toString()))
95+
const errorMessage = data.toString()
96+
97+
if (errorMessage.includes('signal process started')) {
98+
this.log(chalk.green('Nginx reload notice: signal process started'))
99+
} else {
100+
this.error(chalk.red(errorMessage))
101+
}
96102
})
97103

98104
executeCommands.on('close', async (code) => {

0 commit comments

Comments
 (0)