Update nginx-nodejs-redis/web/server.js

Co-authored-by: Guillaume Lours <guillaume@lours.me>
Signed-off-by: ajeetraina <ajeetraina@gmail.com>
This commit is contained in:
Ajeet Singh Raina, Docker Captain, ARM Innovator, RedisInc 2022-03-13 16:47:58 +05:30 committed by ajeetraina
parent 90dfbd99ee
commit 672e11564b

View File

@ -13,7 +13,7 @@ app.get('/', function(req, res) {
if (isNaN(numVisitsToDisplay)) {
numVisitsToDisplay = 1;
}
res.send('Number of visits is: ' + numVisitsToDisplay);
res.send(os.hostname() +': Number of visits is: ' + numVisitsToDisplay);
numVisits++;
redisClient.set('numVisits', numVisits);
});