mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-20 07:48:06 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue