Update nginx-nodejs-redis/web/server.js
Co-authored-by: Guillaume Lours <guillaume@lours.me>
This commit is contained in:
parent
5a53fe5de5
commit
d128c1e568
@ -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