{"action":"closed","issue":{"url":"https://api.github.com/repos/mapbox/report-dt/issues/13","labels_url":"https://api.github.com/repos/mapbox/report-dt/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/report-dt/issues/13/comments","events_url":"https://api.github.com/repos/mapbox/report-dt/issues/13/events","html_url":"https://github.com/mapbox/report-dt/issues/13","id":58773423,"number":13,"title":"Use environment variables for PG connection","user":{"login":"ianshward","id":91258,"avatar_url":"https://avatars.githubusercontent.com/u/91258?v=3","gravatar_id":"","url":"https://api.github.com/users/ianshward","html_url":"https://github.com/ianshward","followers_url":"https://api.github.com/users/ianshward/followers","following_url":"https://api.github.com/users/ianshward/following{/other_user}","gists_url":"https://api.github.com/users/ianshward/gists{/gist_id}","starred_url":"https://api.github.com/users/ianshward/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianshward/subscriptions","organizations_url":"https://api.github.com/users/ianshward/orgs","repos_url":"https://api.github.com/users/ianshward/repos","events_url":"https://api.github.com/users/ianshward/events{/privacy}","received_events_url":"https://api.github.com/users/ianshward/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-24T17:36:36Z","updated_at":"2015-02-24T21:08:23Z","closed_at":"2015-02-24T21:08:23Z","body":"Here https://github.com/mapbox/report-dt/blob/dev/server.js#L17-L22\r\n\r\ninstead of argv.user, argv.port, etc., you could use [postgres environment variables](http://www.postgresql.org/docs/8.4/static/libpq-envars.html) which may give people more flexibility in handling these credentials on their server."}}