Skip to content

Commit

Permalink
fix: handle nginx signal process started
Browse files Browse the repository at this point in the history
  • Loading branch information
confuser committed Jan 3, 2025
1 parent 5df6926 commit dc5b6df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli/commands/setup/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ class NginxCommand extends Command {
})

executeCommands.stderr.on('data', (data) => {
this.error(chalk.red(data.toString()))
const errorMessage = data.toString()

if (errorMessage.includes('signal process started')) {
this.log(chalk.green('Nginx reload notice: signal process started'))
} else {
this.error(chalk.red(errorMessage))
}
})

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

0 comments on commit dc5b6df

Please sign in to comment.