Use the proper server when triggering
This commit is contained in:
parent
247e55ba18
commit
3705c9c0ea
@ -237,7 +237,11 @@ postTriggerLocallyR = do
|
|||||||
mBranch <- lookupPostParam "branch"
|
mBranch <- lookupPostParam "branch"
|
||||||
mGitAnnexRemote <- lookupPostParam "git-annex-remote"
|
mGitAnnexRemote <- lookupPostParam "git-annex-remote"
|
||||||
[Entity userId _] <- runDB $ selectList [UserLocalId ==. Just localId] []
|
[Entity userId _] <- runDB $ selectList [UserLocalId ==. Just localId] []
|
||||||
let localRepo = gitServer ++ localId ++ "/" ++ challengeName
|
|
||||||
|
app <- getYesod
|
||||||
|
let repoHost = appRepoHost $ appSettings app
|
||||||
|
|
||||||
|
let localRepo = repoHost ++ localId ++ "/" ++ challengeName
|
||||||
trigger userId challengeName localRepo mBranch mGitAnnexRemote
|
trigger userId challengeName localRepo mBranch mGitAnnexRemote
|
||||||
|
|
||||||
postTriggerRemotelyR :: Handler TypedContent
|
postTriggerRemotelyR :: Handler TypedContent
|
||||||
|
Loading…
Reference in New Issue
Block a user