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>
This commit is contained in:
parent
5a53fe5de5
commit
d128c1e568
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