tell tpds sender to use pub url for docstore

This commit is contained in:
Henry Oswald 2014-05-21 09:15:50 +01:00
parent 063f6c7680
commit fd53cf0124
3 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,7 @@ module.exports =
addDoc : (options, sl_req_id, callback = (err)->)->
metrics.inc("tpds.add-doc")
{callback, sl_req_id} = slReqIdHelper.getCallbackAndReqId(callback, sl_req_id)
options.streamOrigin = settings.apis.docstore.url + path.join("/project/#{options.project_id}/doc/","#{options.doc_id}/raw")
options.streamOrigin = settings.apis.docstore.pubUrl + path.join("/project/#{options.project_id}/doc/","#{options.doc_id}/raw")
@_addEntity(options, sl_req_id, callback)
  

View file

@ -76,6 +76,7 @@ module.exports =
url : "http://localhost:3015"
docstore:
url : "http://localhost:3016"
pubUrl: "http://localhost:3016"
versioning:
snapshotwaitms:3000
url: "http://localhost:4000"

View file

@ -33,7 +33,7 @@ describe 'TpdsUpdateSender', ->
filestore:
url: filestoreUrl
docstore:
url: @docstoreUrl
pubUrl: @docstoreUrl
redis:fairy:{}
"logger-sharelatex":{log:->}
'../../models/Project': Project:@Project