{"action":"created","comment":{"url":"https://api.github.com/repos/discourse/discourse/pulls/comments/24370705","id":24370705,"diff_hunk":"@@ -1,6 +1,8 @@\n development:\n   adapter: postgresql\n-  database: discourse_development\n+  database: <%= ENV['DISCOURSE_DB_NAME'] || 'discourse_development' %>","path":"config/database.yml","position":4,"original_position":4,"commit_id":"c2f89f3f6e64e84a2a2db49c9a13d0b0db58833e","original_commit_id":"c2f89f3f6e64e84a2a2db49c9a13d0b0db58833e","user":{"login":"riking","id":627891,"avatar_url":"https://avatars.githubusercontent.com/u/627891?v=3","gravatar_id":"","url":"https://api.github.com/users/riking","html_url":"https://github.com/riking","followers_url":"https://api.github.com/users/riking/followers","following_url":"https://api.github.com/users/riking/following{/other_user}","gists_url":"https://api.github.com/users/riking/gists{/gist_id}","starred_url":"https://api.github.com/users/riking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/riking/subscriptions","organizations_url":"https://api.github.com/users/riking/orgs","repos_url":"https://api.github.com/users/riking/repos","events_url":"https://api.github.com/users/riking/events{/privacy}","received_events_url":"https://api.github.com/users/riking/received_events","type":"User","site_admin":false},"body":"This is already done for `Rails.env.production`, just reuse that code","created_at":"2015-02-09T22:15:03Z","updated_at":"2015-02-09T22:15:03Z","html_url":"https://github.com/discourse/discourse/pull/3155#discussion_r24370705","pull_request_url":"https://api.github.com/repos/discourse/discourse/pulls/3155","_links":{"self":{"href":"https://api.github.com/repos/discourse/discourse/pulls/comments/24370705"},"html":{"href":"https://github.com/discourse/discourse/pull/3155#discussion_r24370705"},"pull_request":{"href":"https://api.github.com/repos/discourse/discourse/pulls/3155"}}},"pull_request":{"url":"https://api.github.com/repos/discourse/discourse/pulls/3155","id":28422628,"html_url":"https://github.com/discourse/discourse/pull/3155","diff_url":"https://github.com/discourse/discourse/pull/3155.diff","patch_url":"https://github.com/discourse/discourse/pull/3155.patch","issue_url":"https://api.github.com/repos/discourse/discourse/issues/3155","number":3155,"state":"open","locked":false,"title":"Support for relative URLs and discourse-only docker containers","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},"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\n\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](http://moz.com/community/q/moz-s-official-stance-on-subdomain-vs-subfolder-does-it-need-updating#reply_217479). \r\n\r\n- Better support for deployments with external Postgres, Redis and nginx.\r\n\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](http://www.fig.sh/) 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`.\r\n","created_at":"2015-01-31T22:58:30Z","updated_at":"2015-02-09T22:15:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"deebb2c66d267e1834794c57b2ee25df8b754843","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/discourse/discourse/pulls/3155/commits","review_comments_url":"https://api.github.com/repos/discourse/discourse/pulls/3155/comments","review_comment_url":"https://api.github.com/repos/discourse/discourse/pulls/comments/{number}","comments_url":"https://api.github.com/repos/discourse/discourse/issues/3155/comments","statuses_url":"https://api.github.com/repos/discourse/discourse/statuses/c2f89f3f6e64e84a2a2db49c9a13d0b0db58833e","head":{"label":"yummly:rebasing","ref":"rebasing","sha":"c2f89f3f6e64e84a2a2db49c9a13d0b0db58833e","user":{"login":"yummly","id":1558462,"avatar_url":"https://avatars.githubusercontent.com/u/1558462?v=3","gravatar_id":"","url":"https://api.github.com/users/yummly","html_url":"https://github.com/yummly","followers_url":"https://api.github.com/users/yummly/followers","following_url":"https://api.github.com/users/yummly/following{/other_user}","gists_url":"https://api.github.com/users/yummly/gists{/gist_id}","starred_url":"https://api.github.com/users/yummly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yummly/subscriptions","organizations_url":"https://api.github.com/users/yummly/orgs","repos_url":"https://api.github.com/users/yummly/repos","events_url":"https://api.github.com/users/yummly/events{/privacy}","received_events_url":"https://api.github.com/users/yummly/received_events","type":"Organization","site_admin":false},"repo":{"id":28328577,"name":"discourse","full_name":"yummly/discourse","owner":{"login":"yummly","id":1558462,"avatar_url":"https://avatars.githubusercontent.com/u/1558462?v=3","gravatar_id":"","url":"https://api.github.com/users/yummly","html_url":"https://github.com/yummly","followers_url":"https://api.github.com/users/yummly/followers","following_url":"https://api.github.com/users/yummly/following{/other_user}","gists_url":"https://api.github.com/users/yummly/gists{/gist_id}","starred_url":"https://api.github.com/users/yummly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yummly/subscriptions","organizations_url":"https://api.github.com/users/yummly/orgs","repos_url":"https://api.github.com/users/yummly/repos","events_url":"https://api.github.com/users/yummly/events{/privacy}","received_events_url":"https://api.github.com/users/yummly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yummly/discourse","description":"A platform for community discussion. Free, open, simple.","fork":true,"url":"https://api.github.com/repos/yummly/discourse","forks_url":"https://api.github.com/repos/yummly/discourse/forks","keys_url":"https://api.github.com/repos/yummly/discourse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yummly/discourse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yummly/discourse/teams","hooks_url":"https://api.github.com/repos/yummly/discourse/hooks","issue_events_url":"https://api.github.com/repos/yummly/discourse/issues/events{/number}","events_url":"https://api.github.com/repos/yummly/discourse/events","assignees_url":"https://api.github.com/repos/yummly/discourse/assignees{/user}","branches_url":"https://api.github.com/repos/yummly/discourse/branches{/branch}","tags_url":"https://api.github.com/repos/yummly/discourse/tags","blobs_url":"https://api.github.com/repos/yummly/discourse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yummly/discourse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yummly/discourse/git/refs{/sha}","trees_url":"https://api.github.com/repos/yummly/discourse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yummly/discourse/statuses/{sha}","languages_url":"https://api.github.com/repos/yummly/discourse/languages","stargazers_url":"https://api.github.com/repos/yummly/discourse/stargazers","contributors_url":"https://api.github.com/repos/yummly/discourse/contributors","subscribers_url":"https://api.github.com/repos/yummly/discourse/subscribers","subscription_url":"https://api.github.com/repos/yummly/discourse/subscription","commits_url":"https://api.github.com/repos/yummly/discourse/commits{/sha}","git_commits_url":"https://api.github.com/repos/yummly/discourse/git/commits{/sha}","comments_url":"https://api.github.com/repos/yummly/discourse/comments{/number}","issue_comment_url":"https://api.github.com/repos/yummly/discourse/issues/comments/{number}","contents_url":"https://api.github.com/repos/yummly/discourse/contents/{+path}","compare_url":"https://api.github.com/repos/yummly/discourse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yummly/discourse/merges","archive_url":"https://api.github.com/repos/yummly/discourse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yummly/discourse/downloads","issues_url":"https://api.github.com/repos/yummly/discourse/issues{/number}","pulls_url":"https://api.github.com/repos/yummly/discourse/pulls{/number}","milestones_url":"https://api.github.com/repos/yummly/discourse/milestones{/number}","notifications_url":"https://api.github.com/repos/yummly/discourse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yummly/discourse/labels{/name}","releases_url":"https://api.github.com/repos/yummly/discourse/releases{/id}","created_at":"2014-12-22T07:14:30Z","updated_at":"2015-02-06T18:45:24Z","pushed_at":"2015-02-06T18:46:53Z","git_url":"git://github.com/yummly/discourse.git","ssh_url":"git@github.com:yummly/discourse.git","clone_url":"https://github.com/yummly/discourse.git","svn_url":"https://github.com/yummly/discourse","homepage":"http://www.discourse.org","size":74975,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"discourse:master","ref":"master","sha":"c502e9fc471d0c03a489734ebfb515bbb14a219b","user":{"login":"discourse","id":3220138,"avatar_url":"https://avatars.githubusercontent.com/u/3220138?v=3","gravatar_id":"","url":"https://api.github.com/users/discourse","html_url":"https://github.com/discourse","followers_url":"https://api.github.com/users/discourse/followers","following_url":"https://api.github.com/users/discourse/following{/other_user}","gists_url":"https://api.github.com/users/discourse/gists{/gist_id}","starred_url":"https://api.github.com/users/discourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discourse/subscriptions","organizations_url":"https://api.github.com/users/discourse/orgs","repos_url":"https://api.github.com/users/discourse/repos","events_url":"https://api.github.com/users/discourse/events{/privacy}","received_events_url":"https://api.github.com/users/discourse/received_events","type":"Organization","site_admin":false},"repo":{"id":7569578,"name":"discourse","full_name":"discourse/discourse","owner":{"login":"discourse","id":3220138,"avatar_url":"https://avatars.githubusercontent.com/u/3220138?v=3","gravatar_id":"","url":"https://api.github.com/users/discourse","html_url":"https://github.com/discourse","followers_url":"https://api.github.com/users/discourse/followers","following_url":"https://api.github.com/users/discourse/following{/other_user}","gists_url":"https://api.github.com/users/discourse/gists{/gist_id}","starred_url":"https://api.github.com/users/discourse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discourse/subscriptions","organizations_url":"https://api.github.com/users/discourse/orgs","repos_url":"https://api.github.com/users/discourse/repos","events_url":"https://api.github.com/users/discourse/events{/privacy}","received_events_url":"https://api.github.com/users/discourse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/discourse/discourse","description":"A platform for community discussion. Free, open, simple.","fork":false,"url":"https://api.github.com/repos/discourse/discourse","forks_url":"https://api.github.com/repos/discourse/discourse/forks","keys_url":"https://api.github.com/repos/discourse/discourse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/discourse/discourse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/discourse/discourse/teams","hooks_url":"https://api.github.com/repos/discourse/discourse/hooks","issue_events_url":"https://api.github.com/repos/discourse/discourse/issues/events{/number}","events_url":"https://api.github.com/repos/discourse/discourse/events","assignees_url":"https://api.github.com/repos/discourse/discourse/assignees{/user}","branches_url":"https://api.github.com/repos/discourse/discourse/branches{/branch}","tags_url":"https://api.github.com/repos/discourse/discourse/tags","blobs_url":"https://api.github.com/repos/discourse/discourse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/discourse/discourse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/discourse/discourse/git/refs{/sha}","trees_url":"https://api.github.com/repos/discourse/discourse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/discourse/discourse/statuses/{sha}","languages_url":"https://api.github.com/repos/discourse/discourse/languages","stargazers_url":"https://api.github.com/repos/discourse/discourse/stargazers","contributors_url":"https://api.github.com/repos/discourse/discourse/contributors","subscribers_url":"https://api.github.com/repos/discourse/discourse/subscribers","subscription_url":"https://api.github.com/repos/discourse/discourse/subscription","commits_url":"https://api.github.com/repos/discourse/discourse/commits{/sha}","git_commits_url":"https://api.github.com/repos/discourse/discourse/git/commits{/sha}","comments_url":"https://api.github.com/repos/discourse/discourse/comments{/number}","issue_comment_url":"https://api.github.com/repos/discourse/discourse/issues/comments/{number}","contents_url":"https://api.github.com/repos/discourse/discourse/contents/{+path}","compare_url":"https://api.github.com/repos/discourse/discourse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/discourse/discourse/merges","archive_url":"https://api.github.com/repos/discourse/discourse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/discourse/discourse/downloads","issues_url":"https://api.github.com/repos/discourse/discourse/issues{/number}","pulls_url":"https://api.github.com/repos/discourse/discourse/pulls{/number}","milestones_url":"https://api.github.com/repos/discourse/discourse/milestones{/number}","notifications_url":"https://api.github.com/repos/discourse/discourse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/discourse/discourse/labels{/name}","releases_url":"https://api.github.com/repos/discourse/discourse/releases{/id}","created_at":"2013-01-12T00:25:55Z","updated_at":"2015-02-09T22:08:56Z","pushed_at":"2015-02-09T22:08:56Z","git_url":"git://github.com/discourse/discourse.git","ssh_url":"git@github.com:discourse/discourse.git","clone_url":"https://github.com/discourse/discourse.git","svn_url":"https://github.com/discourse/discourse","homepage":"http://www.discourse.org","size":175480,"stargazers_count":13453,"watchers_count":13453,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3570,"mirror_url":null,"open_issues_count":14,"forks":3570,"open_issues":14,"watchers":13453,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/discourse/discourse/pulls/3155"},"html":{"href":"https://github.com/discourse/discourse/pull/3155"},"issue":{"href":"https://api.github.com/repos/discourse/discourse/issues/3155"},"comments":{"href":"https://api.github.com/repos/discourse/discourse/issues/3155/comments"},"review_comments":{"href":"https://api.github.com/repos/discourse/discourse/pulls/3155/comments"},"review_comment":{"href":"https://api.github.com/repos/discourse/discourse/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/discourse/discourse/pulls/3155/commits"},"statuses":{"href":"https://api.github.com/repos/discourse/discourse/statuses/c2f89f3f6e64e84a2a2db49c9a13d0b0db58833e"}}}}