put tpdsworker url in from settings

This commit is contained in:
Henry Oswald 2015-06-23 11:13:05 +01:00
parent 2ec925b45e
commit b83fe4dcf9
2 changed files with 3 additions and 2 deletions

View file

@ -20,13 +20,12 @@ module.exports = TpdsUpdateSender =
_enqueue: (group, method, job, callback)->
opts =
uri:"http://localhost:3030/enqueue/web_to_tpds_http_requests"
uri:"#{settings.apis.tpdsworker.url}/enqueue/web_to_tpds_http_requests"
json :
group:group
method:method
job:job
method:"post"
request opts, (err)->
if err?
callback(err)

View file

@ -68,6 +68,8 @@ module.exports =
thirdPartyDataStore:
url : "http://localhost:3002"
emptyProjectFlushDelayMiliseconds: 5 * seconds
tpdsworker:
url: "http://localhost:3030"
tags:
url :"http://localhost:3012"
spelling: