Skip to content

Commit d62f56d

Browse files
committed
mon
1 parent 4d3929e commit d62f56d

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

docker/stage/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM nodezoo-shared
2+
FROM nodezoo-shared:1
33

44
ADD app /app/
55

docker/stage/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
build :
22
mkdir -p app
33
cp -r ../../web.js ../../srv ../../www app
4-
docker build -t nodezoo-web .
4+
docker build -t nodezoo-web:1 .
5+
docker build -t nodezoo-web-prod:1 -f Dockerfile-prod .
56

67
clean :
78
rm *~

srv/web-stage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ var Seneca = require('seneca')
77
var app = require('../web.js')
88

99
Seneca({tag: 'web'})
10+
.use('zipkin-tracer', {host: 'zipkin', sampling: 1})
11+
.use('statsd', {host: 'stats'})
12+
1013
.listen(PORT)
1114

1215
.client({pin:'role:search', host:'search', port:PORT})

web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = function(options) {
9191
method: 'GET', path: '/api/suggest',
9292
handler: function( request, reply ){
9393
server.seneca.act(
94-
'role:suggest,cmd:suggest',{query:request.query.q},
94+
'role:suggest,cmd:suggest',{query:request.query.q,default$:[]},
9595
function(err,out){
9696
reply(out||[])
9797
})

0 commit comments

Comments
 (0)