{"action":"created","comment":{"url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/comments/57848892","id":57848892,"diff_hunk":"@@ -0,0 +1,45 @@\n+---\n+title: \"Running a Jekyll Site on Heroku, The Easier Way\"\n+author: eric-schaefer\n+layout: post\n+---\n+\n+Recently I've been working on a prototype where I simply needed to serve the static files compiled by [Jekyll](https://jekyllrb.com/), on Heroku. Seems straightforward right?\n+\n+Wrong. Turns out that for every URL that isn't just a single page on root `index.html`, you need to add a custom `config.ru` to your project with all kinds of `rack-rewrite` rules to remove the `.html` extensions from URLs, add a `Gemfile`, and the list goes on... just to get Heroku to serve static files with a `Rack` server.\n+\n+Dave Rupert's article on [deploying Jekyll to Heroku using Dropbox](http://daverupert.com/2015/02/jekyll-heroku-dropbox/) got me partially there, but it seemed to me like his solution could be simplified, and better yet, support nice clean URLS for more than one page.\n+\n+So, here's an improved approach to run a compiled Jekyll site on Heroku.","path":"_posts/2016-03-29-jekyll-on-heroku.md","position":13,"original_position":13,"commit_id":"cb4d6d178d78246c97331fe01298ff5de5897bae","original_commit_id":"cb4d6d178d78246c97331fe01298ff5de5897bae","user":{"login":"HugoGiraudel","id":1889710,"avatar_url":"https://avatars.githubusercontent.com/u/1889710?v=3","gravatar_id":"","url":"https://api.github.com/users/HugoGiraudel","html_url":"https://github.com/HugoGiraudel","followers_url":"https://api.github.com/users/HugoGiraudel/followers","following_url":"https://api.github.com/users/HugoGiraudel/following{/other_user}","gists_url":"https://api.github.com/users/HugoGiraudel/gists{/gist_id}","starred_url":"https://api.github.com/users/HugoGiraudel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HugoGiraudel/subscriptions","organizations_url":"https://api.github.com/users/HugoGiraudel/orgs","repos_url":"https://api.github.com/users/HugoGiraudel/repos","events_url":"https://api.github.com/users/HugoGiraudel/events{/privacy}","received_events_url":"https://api.github.com/users/HugoGiraudel/received_events","type":"User","site_admin":false},"body":"Smart quote. ;)","created_at":"2016-03-30T07:54:39Z","updated_at":"2016-03-30T07:54:39Z","html_url":"https://github.com/edenspiekermann/espi-devblog/pull/11#discussion_r57848892","pull_request_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/comments/57848892"},"html":{"href":"https://github.com/edenspiekermann/espi-devblog/pull/11#discussion_r57848892"},"pull_request":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11","id":64557133,"html_url":"https://github.com/edenspiekermann/espi-devblog/pull/11","diff_url":"https://github.com/edenspiekermann/espi-devblog/pull/11.diff","patch_url":"https://github.com/edenspiekermann/espi-devblog/pull/11.patch","issue_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/11","number":11,"state":"open","locked":false,"title":"[RFR] Add Jekyll on Heroku post","user":{"login":"eschaefer","id":547148,"avatar_url":"https://avatars.githubusercontent.com/u/547148?v=3","gravatar_id":"","url":"https://api.github.com/users/eschaefer","html_url":"https://github.com/eschaefer","followers_url":"https://api.github.com/users/eschaefer/followers","following_url":"https://api.github.com/users/eschaefer/following{/other_user}","gists_url":"https://api.github.com/users/eschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/eschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eschaefer/subscriptions","organizations_url":"https://api.github.com/users/eschaefer/orgs","repos_url":"https://api.github.com/users/eschaefer/repos","events_url":"https://api.github.com/users/eschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/eschaefer/received_events","type":"User","site_admin":false},"body":"Was a weirdly annoying thing to accomplish. Sharing findings.","created_at":"2016-03-30T00:53:09Z","updated_at":"2016-03-30T07:54:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c92b610b37bc1ec830f5af77c61db32018c5ec2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11/commits","review_comments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11/comments","review_comment_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/11/comments","statuses_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/statuses/cb4d6d178d78246c97331fe01298ff5de5897bae","head":{"label":"edenspiekermann:post/jekyll-heroku","ref":"post/jekyll-heroku","sha":"cb4d6d178d78246c97331fe01298ff5de5897bae","user":{"login":"edenspiekermann","id":110320,"avatar_url":"https://avatars.githubusercontent.com/u/110320?v=3","gravatar_id":"","url":"https://api.github.com/users/edenspiekermann","html_url":"https://github.com/edenspiekermann","followers_url":"https://api.github.com/users/edenspiekermann/followers","following_url":"https://api.github.com/users/edenspiekermann/following{/other_user}","gists_url":"https://api.github.com/users/edenspiekermann/gists{/gist_id}","starred_url":"https://api.github.com/users/edenspiekermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenspiekermann/subscriptions","organizations_url":"https://api.github.com/users/edenspiekermann/orgs","repos_url":"https://api.github.com/users/edenspiekermann/repos","events_url":"https://api.github.com/users/edenspiekermann/events{/privacy}","received_events_url":"https://api.github.com/users/edenspiekermann/received_events","type":"Organization","site_admin":false},"repo":{"id":44160809,"name":"espi-devblog","full_name":"edenspiekermann/espi-devblog","owner":{"login":"edenspiekermann","id":110320,"avatar_url":"https://avatars.githubusercontent.com/u/110320?v=3","gravatar_id":"","url":"https://api.github.com/users/edenspiekermann","html_url":"https://github.com/edenspiekermann","followers_url":"https://api.github.com/users/edenspiekermann/followers","following_url":"https://api.github.com/users/edenspiekermann/following{/other_user}","gists_url":"https://api.github.com/users/edenspiekermann/gists{/gist_id}","starred_url":"https://api.github.com/users/edenspiekermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenspiekermann/subscriptions","organizations_url":"https://api.github.com/users/edenspiekermann/orgs","repos_url":"https://api.github.com/users/edenspiekermann/repos","events_url":"https://api.github.com/users/edenspiekermann/events{/privacy}","received_events_url":"https://api.github.com/users/edenspiekermann/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edenspiekermann/espi-devblog","description":"Edenspiekermann Developer Blog","fork":false,"url":"https://api.github.com/repos/edenspiekermann/espi-devblog","forks_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/forks","keys_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/teams","hooks_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/hooks","issue_events_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/events{/number}","events_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/events","assignees_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/assignees{/user}","branches_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/branches{/branch}","tags_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/tags","blobs_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/statuses/{sha}","languages_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/languages","stargazers_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/stargazers","contributors_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/contributors","subscribers_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/subscribers","subscription_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/subscription","commits_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/contents/{+path}","compare_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/merges","archive_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/downloads","issues_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues{/number}","pulls_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls{/number}","milestones_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/milestones{/number}","notifications_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/labels{/name}","releases_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/releases{/id}","deployments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/deployments","created_at":"2015-10-13T07:54:15Z","updated_at":"2016-02-15T10:59:38Z","pushed_at":"2016-03-30T01:15:00Z","git_url":"git://github.com/edenspiekermann/espi-devblog.git","ssh_url":"git@github.com:edenspiekermann/espi-devblog.git","clone_url":"https://github.com/edenspiekermann/espi-devblog.git","svn_url":"https://github.com/edenspiekermann/espi-devblog","homepage":null,"size":1135,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"edenspiekermann:master","ref":"master","sha":"0ddfe655192ff1ffad1bd4105d110935cd3bc156","user":{"login":"edenspiekermann","id":110320,"avatar_url":"https://avatars.githubusercontent.com/u/110320?v=3","gravatar_id":"","url":"https://api.github.com/users/edenspiekermann","html_url":"https://github.com/edenspiekermann","followers_url":"https://api.github.com/users/edenspiekermann/followers","following_url":"https://api.github.com/users/edenspiekermann/following{/other_user}","gists_url":"https://api.github.com/users/edenspiekermann/gists{/gist_id}","starred_url":"https://api.github.com/users/edenspiekermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenspiekermann/subscriptions","organizations_url":"https://api.github.com/users/edenspiekermann/orgs","repos_url":"https://api.github.com/users/edenspiekermann/repos","events_url":"https://api.github.com/users/edenspiekermann/events{/privacy}","received_events_url":"https://api.github.com/users/edenspiekermann/received_events","type":"Organization","site_admin":false},"repo":{"id":44160809,"name":"espi-devblog","full_name":"edenspiekermann/espi-devblog","owner":{"login":"edenspiekermann","id":110320,"avatar_url":"https://avatars.githubusercontent.com/u/110320?v=3","gravatar_id":"","url":"https://api.github.com/users/edenspiekermann","html_url":"https://github.com/edenspiekermann","followers_url":"https://api.github.com/users/edenspiekermann/followers","following_url":"https://api.github.com/users/edenspiekermann/following{/other_user}","gists_url":"https://api.github.com/users/edenspiekermann/gists{/gist_id}","starred_url":"https://api.github.com/users/edenspiekermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenspiekermann/subscriptions","organizations_url":"https://api.github.com/users/edenspiekermann/orgs","repos_url":"https://api.github.com/users/edenspiekermann/repos","events_url":"https://api.github.com/users/edenspiekermann/events{/privacy}","received_events_url":"https://api.github.com/users/edenspiekermann/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edenspiekermann/espi-devblog","description":"Edenspiekermann Developer Blog","fork":false,"url":"https://api.github.com/repos/edenspiekermann/espi-devblog","forks_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/forks","keys_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/teams","hooks_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/hooks","issue_events_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/events{/number}","events_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/events","assignees_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/assignees{/user}","branches_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/branches{/branch}","tags_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/tags","blobs_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/refs{/sha}","trees_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/statuses/{sha}","languages_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/languages","stargazers_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/stargazers","contributors_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/contributors","subscribers_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/subscribers","subscription_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/subscription","commits_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/commits{/sha}","git_commits_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/git/commits{/sha}","comments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/comments{/number}","issue_comment_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/comments{/number}","contents_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/contents/{+path}","compare_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/merges","archive_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/downloads","issues_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues{/number}","pulls_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls{/number}","milestones_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/milestones{/number}","notifications_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/labels{/name}","releases_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/releases{/id}","deployments_url":"https://api.github.com/repos/edenspiekermann/espi-devblog/deployments","created_at":"2015-10-13T07:54:15Z","updated_at":"2016-02-15T10:59:38Z","pushed_at":"2016-03-30T01:15:00Z","git_url":"git://github.com/edenspiekermann/espi-devblog.git","ssh_url":"git@github.com:edenspiekermann/espi-devblog.git","clone_url":"https://github.com/edenspiekermann/espi-devblog.git","svn_url":"https://github.com/edenspiekermann/espi-devblog","homepage":null,"size":1135,"stargazers_count":1,"watchers_count":1,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11"},"html":{"href":"https://github.com/edenspiekermann/espi-devblog/pull/11"},"issue":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/11"},"comments":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/edenspiekermann/espi-devblog/statuses/cb4d6d178d78246c97331fe01298ff5de5897bae"}}}}