{"action":"closed","issue":{"url":"https://api.github.com/repos/parsonsmatt/servant-persistent/issues/11","repository_url":"https://api.github.com/repos/parsonsmatt/servant-persistent","labels_url":"https://api.github.com/repos/parsonsmatt/servant-persistent/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/parsonsmatt/servant-persistent/issues/11/comments","events_url":"https://api.github.com/repos/parsonsmatt/servant-persistent/issues/11/events","html_url":"https://github.com/parsonsmatt/servant-persistent/issues/11","id":236470421,"number":11,"title":"Connexion string for production is not usable","user":{"login":"Raveline","id":3382997,"avatar_url":"https://avatars3.githubusercontent.com/u/3382997?v=4","gravatar_id":"","url":"https://api.github.com/users/Raveline","html_url":"https://github.com/Raveline","followers_url":"https://api.github.com/users/Raveline/followers","following_url":"https://api.github.com/users/Raveline/following{/other_user}","gists_url":"https://api.github.com/users/Raveline/gists{/gist_id}","starred_url":"https://api.github.com/users/Raveline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Raveline/subscriptions","organizations_url":"https://api.github.com/users/Raveline/orgs","repos_url":"https://api.github.com/users/Raveline/repos","events_url":"https://api.github.com/users/Raveline/events{/privacy}","received_events_url":"https://api.github.com/users/Raveline/received_events","type":"User","site_admin":false},"labels":[{"id":693672232,"url":"https://api.github.com/repos/parsonsmatt/servant-persistent/labels/beginner%20friendly","name":"beginner friendly","color":"fef2c0","default":false},{"id":221159804,"url":"https://api.github.com/repos/parsonsmatt/servant-persistent/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-16T12:35:26Z","updated_at":"2017-09-15T21:07:25Z","closed_at":"2017-09-15T21:07:25Z","author_association":"NONE","body":"I might be wrong, but the way you wrote the connexion string variable in [Config.hs](\r\nhttps://github.com/parsonsmatt/servant-persistent/blob/master/src/Config.hs#L90):\r\n\r\n`let prodStr = mconcat . zipWith (<>) keys $ BS.pack <$> envVars`\r\n\r\n... will produce a string like : \"host=myhostdbname=mydbnameuser=myuser...\" rather than space-separated (\"host=myhost dbname=mydbname user=myuser...\"). A simple (though not very elegant) fix could be:\r\n\r\n`let prodStr = mconcat . zipWith (<>) keys $ (flip BS.snoc ' ' . BS.pack) <$> envVars`"}}
{"actor":{"display_login":"parsonsmatt"}}