{"action":"created","issue":{"url":"https://api.github.com/repos/hanami/hanami/issues/766","repository_url":"https://api.github.com/repos/hanami/hanami","labels_url":"https://api.github.com/repos/hanami/hanami/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/hanami/hanami/issues/766/comments","events_url":"https://api.github.com/repos/hanami/hanami/issues/766/events","html_url":"https://github.com/hanami/hanami/issues/766","id":220093351,"number":766,"title":"Example on website won't work if not using Ruby 2.3.1 locally","user":{"login":"welkie","id":7719209,"avatar_url":"https://avatars2.githubusercontent.com/u/7719209?v=3","gravatar_id":"","url":"https://api.github.com/users/welkie","html_url":"https://github.com/welkie","followers_url":"https://api.github.com/users/welkie/followers","following_url":"https://api.github.com/users/welkie/following{/other_user}","gists_url":"https://api.github.com/users/welkie/gists{/gist_id}","starred_url":"https://api.github.com/users/welkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welkie/subscriptions","organizations_url":"https://api.github.com/users/welkie/orgs","repos_url":"https://api.github.com/users/welkie/repos","events_url":"https://api.github.com/users/welkie/events{/privacy}","received_events_url":"https://api.github.com/users/welkie/received_events","type":"User","site_admin":false},"labels":[{"id":51404913,"url":"https://api.github.com/repos/hanami/hanami/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-07T02:50:22Z","updated_at":"2017-04-25T15:04:20Z","closed_at":"2017-04-25T15:04:20Z","body":"Hello,\r\n\r\nI was curious to try Hanami out now that it's at its 1.0.0 release (great work, devs :+1: ), so I followed the steps on the home page where it has the three sections for \"Download\", \"Develop\", and \"Deploy\". Unfortunately, since I wasn't using Ruby 2.3.1 locally (I use RVM and I'm on 2.4.1 right now), I wasn't able to run the ```bundle``` command locally and therefore a Gemfile.lock file wasn't generated. This caused Heroku to fail to compile.\r\n\r\nChanging the line echoed into the Gemfile from:\r\n\r\n```ruby\r\nruby '2.3.1'\r\n```\r\n\r\nto:\r\n\r\n```ruby\r\nruby '2.4.1'\r\n```\r\n\r\nsolves this.\r\n\r\nI end up having it run no problem by stringing the commands together as:\r\n\r\n```bash\r\nhanami new bookshelf --database=postgresql \\\r\n  ; cd bookshelf && echo \"ruby '2.4.1'\" >> Gemfile && bundle \\\r\n  ; git add . && git commit -m \"Initial commit\" \\\r\n  ; heroku apps:create \\\r\n  ; heroku config:add SERVE_STATIC_ASSETS=true \\\r\n  ; git push heroku master \\\r\n  ; heroku run bundle exec hanami db migrate \\\r\n  ; heroku open\r\n```\r\n\r\nAnybody running those commands locally as they follow along with the instructions on the home page needs to make sure they're echoing their local version of Ruby into the Gemfile before running ```bundle```, or maybe just not bother at all with that step, letting Heroku compile it as they will. Perhaps that should be documented?"},"comment":{"url":"https://api.github.com/repos/hanami/hanami/issues/comments/297059683","html_url":"https://github.com/hanami/hanami/issues/766#issuecomment-297059683","issue_url":"https://api.github.com/repos/hanami/hanami/issues/766","id":297059683,"user":{"login":"jodosha","id":5089,"avatar_url":"https://avatars2.githubusercontent.com/u/5089?v=3","gravatar_id":"","url":"https://api.github.com/users/jodosha","html_url":"https://github.com/jodosha","followers_url":"https://api.github.com/users/jodosha/followers","following_url":"https://api.github.com/users/jodosha/following{/other_user}","gists_url":"https://api.github.com/users/jodosha/gists{/gist_id}","starred_url":"https://api.github.com/users/jodosha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jodosha/subscriptions","organizations_url":"https://api.github.com/users/jodosha/orgs","repos_url":"https://api.github.com/users/jodosha/repos","events_url":"https://api.github.com/users/jodosha/events{/privacy}","received_events_url":"https://api.github.com/users/jodosha/received_events","type":"User","site_admin":false},"created_at":"2017-04-25T15:04:20Z","updated_at":"2017-04-25T15:04:20Z","body":"@welkie Hi, I'm happy that you made it working. Thank you all. 👍 "}}
{"actor":{"display_login":"jodosha"}}