[feature] Translate comments

This commit is contained in:
Sergey Konovalov
2023-07-05 16:00:50 +03:00
parent c9c81ef900
commit 3392eef3e8
14 changed files with 182 additions and 192 deletions

View File

@ -57,7 +57,7 @@ function endCheckHealth (msg) {
statusCheckHealth = true;
}
const workersCount = 1; // ToDo Пока только 1 процесс будем задействовать. Но в будующем стоит рассмотреть несколько.
const workersCount = 1; // ToDo So far, we will use only 1 process. But in the future it is worth considering a few.
if (cluster.isMaster) {
logger.warn('start cluster with %s workers', workersCount);
cluster.on('listening', function(worker) {
@ -102,10 +102,9 @@ if (cluster.isMaster) {
server = http.createServer(app);
}
// Если захочется использовать 'development' и 'production',
// то с помощью app.settings.env (https://github.com/strongloop/express/issues/936)
// Если нужна обработка ошибок, то теперь она такая https://github.com/expressjs/errorhandler
spellCheck.install(server, function(){
// If you want to use 'development' and 'production',
// then with app.settings.env (https://github.com/strongloop/express/issues/936)
// If error handling is needed, now it's like this https://github.com/expressjs/errorhandler spellCheck.install(server, function(){
server.listen(config.get('server.port'), function(){
logger.warn("Express server listening on port %d in %s mode", config.get('server.port'), app.settings.env);
});