{"action":"created","issue":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/332","labels_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/332/comments","events_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/332/events","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/332","id":121111681,"number":332,"title":"CI error: No such file or directory @ rb_sysopen - /home/travis/build/luma-institute/<app>/log/ember-frontend.test.log","user":{"login":"patcoll","id":81328,"avatar_url":"https://avatars.githubusercontent.com/u/81328?v=3","gravatar_id":"","url":"https://api.github.com/users/patcoll","html_url":"https://github.com/patcoll","followers_url":"https://api.github.com/users/patcoll/followers","following_url":"https://api.github.com/users/patcoll/following{/other_user}","gists_url":"https://api.github.com/users/patcoll/gists{/gist_id}","starred_url":"https://api.github.com/users/patcoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcoll/subscriptions","organizations_url":"https://api.github.com/users/patcoll/orgs","repos_url":"https://api.github.com/users/patcoll/repos","events_url":"https://api.github.com/users/patcoll/events{/privacy}","received_events_url":"https://api.github.com/users/patcoll/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T22:14:59Z","updated_at":"2015-12-09T18:37:33Z","closed_at":"2015-12-09T18:37:33Z","body":"I'm getting this error while running controller tests in CI environments. On both Travis CI and CircleCI, in their newest Docker environments.\r\n\r\nI'm resorting to the following hack to get around it for now. I don't need to build in production since I run `assets:precompile` before I deploy. My view for my this custom controller uses `render_ember_app` too.\r\n\r\n    class AssetsController < ApplicationController\r\n      def build_frontend\r\n        EmberCli[:frontend].build\r\n      end\r\n    \r\n      def run_build?\r\n        Rails.env.development? || (Rails.env.test? && ENV['CI'].blank?)\r\n      end\r\n    \r\n      def index\r\n        build_frontend if run_build?\r\n      end\r\n    end"},"comment":{"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/comments/163352087","html_url":"https://github.com/thoughtbot/ember-cli-rails/issues/332#issuecomment-163352087","issue_url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/issues/332","id":163352087,"user":{"login":"patcoll","id":81328,"avatar_url":"https://avatars.githubusercontent.com/u/81328?v=3","gravatar_id":"","url":"https://api.github.com/users/patcoll","html_url":"https://github.com/patcoll","followers_url":"https://api.github.com/users/patcoll/followers","following_url":"https://api.github.com/users/patcoll/following{/other_user}","gists_url":"https://api.github.com/users/patcoll/gists{/gist_id}","starred_url":"https://api.github.com/users/patcoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcoll/subscriptions","organizations_url":"https://api.github.com/users/patcoll/orgs","repos_url":"https://api.github.com/users/patcoll/repos","events_url":"https://api.github.com/users/patcoll/events{/privacy}","received_events_url":"https://api.github.com/users/patcoll/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T18:37:33Z","updated_at":"2015-12-09T18:37:33Z","body":"I had removed the `log/.keep` file from my git repo that Rails installs by default, which seemed to be preventing `ember-cli-rails` from creating the appropriate log files. Apparently some code somewhere assumes the `log` folder exists. After I added this file back, tests started passing in CI again, on both Travis CI and CircleCI.\r\n\r\nSilly error on my part, but should `ember-cli-rails` compensate for human error in this case? Asking genuinely. How assumed is it in the Rails community that the log folder will exist?"}}