{"action":"created","issue":{"url":"https://api.github.com/repos/convox/rack/issues/1988","repository_url":"https://api.github.com/repos/convox/rack","labels_url":"https://api.github.com/repos/convox/rack/issues/1988/labels{/name}","comments_url":"https://api.github.com/repos/convox/rack/issues/1988/comments","events_url":"https://api.github.com/repos/convox/rack/issues/1988/events","html_url":"https://github.com/convox/rack/pull/1988","id":210945678,"number":1988,"title":"Add more defaults for a rails app","user":{"login":"MiguelMoll","id":643960,"avatar_url":"https://avatars2.githubusercontent.com/u/643960?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelMoll","html_url":"https://github.com/MiguelMoll","followers_url":"https://api.github.com/users/MiguelMoll/followers","following_url":"https://api.github.com/users/MiguelMoll/following{/other_user}","gists_url":"https://api.github.com/users/MiguelMoll/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelMoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelMoll/subscriptions","organizations_url":"https://api.github.com/users/MiguelMoll/orgs","repos_url":"https://api.github.com/users/MiguelMoll/repos","events_url":"https://api.github.com/users/MiguelMoll/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelMoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-01T00:36:00Z","updated_at":"2017-03-01T00:38:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/convox/rack/pulls/1988","html_url":"https://github.com/convox/rack/pull/1988","diff_url":"https://github.com/convox/rack/pull/1988.diff","patch_url":"https://github.com/convox/rack/pull/1988.patch"},"body":"Fixes #1985 (See for background)\r\n\r\n- Init will edit the generated command in docker-compose.yml to add -b 0.0.0.0\r\n- `ARG BUNDLE_WITHOUT=\"development:test\"` added to Dockerfile for all rails apps\r\n- .env in .gitignore if .gitignore does not exist (this is keeping with not touching a file if it exists. thoughts?)\r\n- I added a shell trick to display the error if there is one while running the buildpack\r\n    - Verified by writing `gen 'pg'`\r\n\r\nThe Gemfile issue is still up for discussion. Maybe this can go out for now? I tried running `convox start web bundle update` after editing the Gemfile on my host. I didn't see the error mentioned. I saw:\r\n\r\n```\r\nbuild  │ -----> Compiling Ruby/Rails -----> Using Ruby version: ruby-2.2.6 -----> Installing dependencies using bundler 1.13.7 Running: bundle install --without none --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the updated Gemfile.lockto version control. You have added to the Gemfile: Dockerfile Gemfile Gemfile.lock README.md Rakefile app bin config config.ru db docker-compose.yml lib log public test vendor pg Bundler Output: Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. You are trying to install in deployment mode after changing your Gemfile. Run `bundle install` elsewhere and add the updated Gemfile.lock to version control. You have added tothe Gemfile: Dockerfile Gemfile Gemfile.lock README.md Rakefile app bin config config.ru db docker-compose.yml lib log public test vendor pg ! ! Failed to install gems via Bundler.!\r\nbuild  │  ---> 5d6f37dcc79\r\n```\r\n\r\nand\r\n\r\n ```\r\nweb    │ You are trying to install in deployment mode after changing\r\nweb    │ your Gemfile. Run `bundle install` elsewhere and add the\r\nweb    │ updated Gemfile.lock to version control.\r\nweb    │\r\nweb    │ If this is a development machine, remove the /app/Gemfile freeze\r\nweb    │ by running `bundle install --no-deployment`.\r\nweb    │\r\nweb    │ You have added to the Gemfile:\r\nweb    │ * source: rubygems repository https://rubygems.org/\r\nweb    │ * rails (~> 5.0.1)\r\nweb    │ * sqlite3\r\nweb    │ * pg\r\n...\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/convox/rack/issues/comments/283207482","html_url":"https://github.com/convox/rack/pull/1988#issuecomment-283207482","issue_url":"https://api.github.com/repos/convox/rack/issues/1988","id":283207482,"user":{"login":"MiguelMoll","id":643960,"avatar_url":"https://avatars2.githubusercontent.com/u/643960?v=3","gravatar_id":"","url":"https://api.github.com/users/MiguelMoll","html_url":"https://github.com/MiguelMoll","followers_url":"https://api.github.com/users/MiguelMoll/followers","following_url":"https://api.github.com/users/MiguelMoll/following{/other_user}","gists_url":"https://api.github.com/users/MiguelMoll/gists{/gist_id}","starred_url":"https://api.github.com/users/MiguelMoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiguelMoll/subscriptions","organizations_url":"https://api.github.com/users/MiguelMoll/orgs","repos_url":"https://api.github.com/users/MiguelMoll/repos","events_url":"https://api.github.com/users/MiguelMoll/events{/privacy}","received_events_url":"https://api.github.com/users/MiguelMoll/received_events","type":"User","site_admin":false},"created_at":"2017-03-01T00:38:14Z","updated_at":"2017-03-01T00:38:14Z","body":"![](https://github.trello.services/images/mini-trello-icon.png) [QA convox init and buildpacks](https://trello.com/c/pgBddwun/1964-qa-convox-init-and-buildpacks)"}}
{"actor":{"display_login":"MiguelMoll"}}