при попытке pu sh to heroku выдает сообщение «Ошибка предварительной компиляции ресурсов». - PullRequest
0 голосов
/ 08 мая 2020

Изначально у меня были проблемы с пряжей, которую я удалил. то я обновил рельсы до последней версии 6.0.2.2, и все равно это не работает.

remote:        Removing bundler (2.0.2)
remote:        Bundle completed (39.19s)
remote:        Cleaning up the bundler cache.
remote: -----> Installing node-v10.15.3-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote:        Running: rake assets:precompile
remote:        /tmp/build_25022c90f61399230fca098f2d1d781e/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/option_merger.rb:24: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
remote:        /tmp/build_25022c90f61399230fca098f2d1d781e/vendor/bundle/ruby/2.7.0/gems/activesupport-6.0.2.2/lib/active_support/core_ext/class/attribute.rb:87: warning: The called method `class_attribute' is defined here
remote:        DEPRECATION WARNING: Single arity template handlers are deprecated. Template handlers must
remote:        now accept two parameters, the view object and the source for the view object.
remote:        Change:
remote:          >> Coffee::Rails::TemplateHandler.call(template)
remote:        To:
remote:          >> Coffee::Rails::TemplateHandler.call(template, source)
remote:         (called from <top (required)> at /tmp/build_25022c90f61399230fca098f2d1d781e/Rakefile:6)
remote:        config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly:
remote:        
remote:          * development - set it to false
remote:          * test - set it to false (unless you use a tool that preloads your test environment)
remote:          * production - set it to true
remote:        
remote:        /tmp/build_25022c90f61399230fca098f2d1d781e/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/stack.rb:37: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
remote:        /tmp/build_25022c90f61399230fca098f2d1d781e/vendor/bundle/ruby/2.7.0/gems/actionpack-6.0.2.2/lib/action_dispatch/middleware/static.rb:110: warning: The called method `initialize' is defined here
remote:        I, [2020-05-07T23:20:06.410787 #1228]  INFO -- : Writing /tmp/build_25022c90f61399230fca098f2d1d781e/public/assets/application-b8709b2dcb190c854727c34d45ec6243556029204c4461bd9b87adc5a42cdb9b.js
remote:        I, [2020-05-07T23:20:06.411224 #1228]  INFO -- : Writing /tmp/build_25022c90f61399230fca098f2d1d781e/public/assets/application-b8709b2dcb190c854727c34d45ec6243556029204c4461bd9b87adc5a42cdb9b.js.gz
remote:        rake aborted!

а затем:

Tasks: TOP => assets:precompile
remote:        (See full trace by running task with --trace)
remote: 
remote:  !
remote:  !     Precompiling assets failed.
remote:  !
remote:  !     Push rejected, failed to compile Ruby app.
remote: 

какие-нибудь предложения? спасибо

1 Ответ

0 голосов
/ 10 мая 2020

Попробуйте скомпилировать ресурсы локально rake assets:precompile, зафиксируйте изменения и снова sh pu

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...