Ресурсы / LogEntries / Heroku: Errno :: ENOENT: Нет такого файла или каталога @ rb_sysopen log / production.log (развертывание heroku) - PullRequest
0 голосов
/ 30 октября 2018

Когда я пытаюсь перенести свой проект на heroku, я получаю следующую ошибку при запуске rake assets:precompile. У меня установлен гем LogEntries (le), и я запустил bundle install. Я сузил проблему до следующей строки в моем environment.rb файле:

Rails.logger = Le.new('5fea09e1-d1f8-4dfd-aa64-9f4ebaf48b65', :debug => true, :local => true)

Я получил ключ из следующего диалога с панели управления LogEntries через Heroku:

LogEntries

Вот ошибка, которую я получил от Heroku при попытке запустить git push heroku master:

remote:        Running: rake assets:precompile
remote:        rake aborted!
remote:        Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/build_c162f593332a318341970a1544a966e1/log/production.log
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host/http.rb:37:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host/http.rb:37:in `initialize'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host.rb:6:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host.rb:6:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le.rb:30:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/config/environment.rb:15:in `<top (required)>'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:328:in `require'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:328:in `require_environment!'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:448:in `block in run_tasks_blocks'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
remote:        Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/build_c162f593332a318341970a1544a966e1/log/production.log
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host/http.rb:37:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host/http.rb:37:in `initialize'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host.rb:6:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le/host.rb:6:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/le-2.7.6/lib/le.rb:30:in `new'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/config/environment.rb:15:in `<top (required)>'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:328:in `require'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:328:in `require_environment!'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/railties-5.0.2/lib/rails/application.rb:448:in `block in run_tasks_blocks'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
remote:        /tmp/build_c162f593332a318341970a1544a966e1/vendor/bundle/ruby/2.4.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
remote:        Tasks: TOP => environment
remote:        (See full trace by running task with --trace)
remote: 
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
...