{"action":"created","issue":{"url":"https://api.github.com/repos/discourse/discourse/issues/3194","labels_url":"https://api.github.com/repos/discourse/discourse/issues/3194/labels{/name}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/3194/comments","events_url":"https://api.github.com/repos/discourse/discourse/issues/3194/events","html_url":"https://github.com/discourse/discourse/pull/3194","id":57112827,"number":3194,"title":"Support for relative URL and smaller docker images","user":{"login":"vgeshel","id":100214,"avatar_url":"https://avatars.githubusercontent.com/u/100214?v=3","gravatar_id":"","url":"https://api.github.com/users/vgeshel","html_url":"https://github.com/vgeshel","followers_url":"https://api.github.com/users/vgeshel/followers","following_url":"https://api.github.com/users/vgeshel/following{/other_user}","gists_url":"https://api.github.com/users/vgeshel/gists{/gist_id}","starred_url":"https://api.github.com/users/vgeshel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vgeshel/subscriptions","organizations_url":"https://api.github.com/users/vgeshel/orgs","repos_url":"https://api.github.com/users/vgeshel/repos","events_url":"https://api.github.com/users/vgeshel/events{/privacy}","received_events_url":"https://api.github.com/users/vgeshel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-10T00:33:11Z","updated_at":"2015-02-10T00:33:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/3194","html_url":"https://github.com/discourse/discourse/pull/3194","diff_url":"https://github.com/discourse/discourse/pull/3194.diff","patch_url":"https://github.com/discourse/discourse/pull/3194.patch"},"body":"This set of changes does two things. They are mostly unrelated but they were essential for us in building our Discourse instance and, I believe, they are generally useful.\r\n\r\n* Better support for RAILS_RELATIVE_URL: we have fixed numerous places where it wasn't respected.\r\nRunning under a a relative URL (domain.com/forum/...) vs subdomain (forum.domain.com) is very useful from the SEO point of view, see, for instance, here.\r\n\r\n* Better support for deployments with external Postgres, Redis and nginx.\r\nThe repo contains a Dockerfile which builds an image that includes only Discourse itself. This makes it easier to deploy, e.g., in AWS, using RDS (hosted Postgres) and ElastiCache (hosted Redis). The repo also contains a fig.yml, which helps you use fig to do local development using an equivalent setup (the Vagrant-based setup still works just fine). The fig setup is documented in docs/fig.md."},"comment":{"url":"https://api.github.com/repos/discourse/discourse/issues/comments/73621549","html_url":"https://github.com/discourse/discourse/pull/3194#issuecomment-73621549","issue_url":"https://api.github.com/repos/discourse/discourse/issues/3194","id":73621549,"user":{"login":"discoursebot","id":3698800,"avatar_url":"https://avatars.githubusercontent.com/u/3698800?v=3","gravatar_id":"","url":"https://api.github.com/users/discoursebot","html_url":"https://github.com/discoursebot","followers_url":"https://api.github.com/users/discoursebot/followers","following_url":"https://api.github.com/users/discoursebot/following{/other_user}","gists_url":"https://api.github.com/users/discoursebot/gists{/gist_id}","starred_url":"https://api.github.com/users/discoursebot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoursebot/subscriptions","organizations_url":"https://api.github.com/users/discoursebot/orgs","repos_url":"https://api.github.com/users/discoursebot/repos","events_url":"https://api.github.com/users/discoursebot/events{/privacy}","received_events_url":"https://api.github.com/users/discoursebot/received_events","type":"User","site_admin":false},"created_at":"2015-02-10T00:33:17Z","updated_at":"2015-02-10T00:33:17Z","body":"You've signed the CLA, vgeshel. Thank you! This pull request is ready for review."}}