Skip to content

Commit

Permalink
fix nginx start/dep updates/merge upstream
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
renovate[bot] authored and Zoey2936 committed Oct 22, 2024
1 parent 676f724 commit fd5f352
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion backend/internal/nginx.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,13 @@ const internalNginx = {
}
})
.catch(() => {
/* do nothing */
if (fs.existsSync('/usr/local/nginx/logs/nginx.pid') && fs.readFileSync('/usr/local/nginx/logs/nginx.pid', 'utf8').trim().length > 0) {
logger.info('Reloading Nginx');
return utils.execFile('nginx', ['-s', 'reload']);
} else {
logger.info('Starting Nginx');
return utils.execfg('nginx', ['-e', 'stderr']);
}
});
});
},
Expand Down
2 changes: 1 addition & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"archiver": "7.0.1",
"batchflow": "0.4.0",
"bcrypt": "5.1.1",
"better-sqlite3": "11.4.0",
"better-sqlite3": "11.5.0",
"body-parser": "2.0.1",
"compression": "1.7.4",
"express": "4.21.1",
Expand Down

0 comments on commit fd5f352

Please sign in to comment.