{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1400","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1400/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1400/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1400/events","html_url":"https://github.com/gogits/gogs/issues/1400","id":97561094,"number":1400,"title":"IP in HOST Setting ignored for Postgres Backend","user":{"login":"eisensheng","id":72146,"avatar_url":"https://avatars.githubusercontent.com/u/72146?v=3","gravatar_id":"","url":"https://api.github.com/users/eisensheng","html_url":"https://github.com/eisensheng","followers_url":"https://api.github.com/users/eisensheng/followers","following_url":"https://api.github.com/users/eisensheng/following{/other_user}","gists_url":"https://api.github.com/users/eisensheng/gists{/gist_id}","starred_url":"https://api.github.com/users/eisensheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eisensheng/subscriptions","organizations_url":"https://api.github.com/users/eisensheng/orgs","repos_url":"https://api.github.com/users/eisensheng/repos","events_url":"https://api.github.com/users/eisensheng/events{/privacy}","received_events_url":"https://api.github.com/users/eisensheng/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/await","name":"await","color":"fef2c0"},{"url":"https://api.github.com/repos/gogits/gogs/labels/deployment","name":"deployment","color":"d4c5f9"},{"url":"https://api.github.com/repos/gogits/gogs/labels/third-party","name":"third-party","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-07-27T21:46:03Z","updated_at":"2015-07-31T03:06:15Z","closed_at":null,"body":"Setting the `HOST = 10.0.0.10:5433` for example and `DB_TYPE = postgres` leads to the error message \r\n```\r\n[install.go:66 GlobalInit()] [E] Fail to initialize ORM engine: migrate: sync: dial tcp 127.0.0.1:5433: connection refused\r\n````\r\nIt appears that the IP part of the HOST variable is ignored while changing the port number still has an effect.\r\n\r\nThis was observed with gogs compiled from archlinux aur gogs-git and the commit was 70d44e9565e372c73d4f0f42273d4899e8e07f75. "},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/126552823","html_url":"https://github.com/gogits/gogs/issues/1400#issuecomment-126552823","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1400","id":126552823,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T03:06:15Z","updated_at":"2015-07-31T03:06:15Z","body":"OK, it is a bug with PostgreSQL driver, but there is a easy fix by change connection string to the new format, which has been pushed to `master`, update Gogs and rebuild should fix your problem! @eisensheng "}}