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:
parent
90dfbd99ee
commit
672e11564b
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user