从Codeanywhere推送到Heroku-预编译资产失败

时间:2018-08-07 17:35:59

标签: ruby-on-rails ruby heroku

所以我是编码的菜鸟。我知道一些html / css,但仅​​此而已。无论如何,我都遵循Ruby on Rails上这本格式较差的电子书中的说明。我已经在codeanywhere上建立了一个容器项目。到目前为止,我已经通过搜索修复了到目前为止的所有错误。似乎很多人都遇到了这个问题,但是我还没有找到解决方案。我正在尝试推送到我的Heroku帐户。谁能通过查看日志找出我在做什么错?到目前为止,我已经将config.assets.initialize_on_precompile = false添加到我的application.rb文件中,因为这是可能的解决方法之一。否则,我会迷路。

-----> Ruby app detected

-----> Compiling Ruby/Rails

-----> Using Ruby version: ruby-2.4.4

-----> Installing dependencies using bundler 1.15.2

       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment

       Fetching gem metadata from https://rubygems.org/..........

       Fetching version metadata from https://rubygems.org/..

       Fetching dependency metadata from https://rubygems.org/.

       Fetching rake 12.3.1

       Fetching concurrent-ruby 1.0.5

       Fetching json 1.8.6

       Installing rake 12.3.1

       Installing concurrent-ruby 1.0.5

       Installing json 1.8.6 with native extensions

       Fetching minitest 5.11.3

       Installing minitest 5.11.3

       Fetching thread_safe 0.3.6

       Fetching builder 3.2.3

       Installing thread_safe 0.3.6

       Installing builder 3.2.3

       Fetching erubis 2.7.0

       Installing erubis 2.7.0

       Fetching rack 1.5.5

       Installing rack 1.5.5

       Fetching mini_mime 1.0.0

       Installing mini_mime 1.0.0

       Fetching arel 5.0.1.20140414130214

       Using bundler 1.15.2

       Fetching coffee-script-source 1.12.2

       Installing arel 5.0.1.20140414130214

       Installing coffee-script-source 1.12.2

       Fetching execjs 2.7.0

       Installing execjs 2.7.0

       Fetching thor 0.20.0

       Installing thor 0.20.0

       Fetching diff-lcs 1.3

       Fetching hike 1.2.3

       Installing hike 1.2.3

       Installing diff-lcs 1.3

       Fetching multi_json 1.13.1

       Installing multi_json 1.13.1

       Fetching mini_portile2 2.3.0

       Fetching pg 0.17.1

       Installing mini_portile2 2.3.0

       Installing pg 0.17.1 with native extensions

       Fetching tilt 1.4.1

       Installing tilt 1.4.1

       Fetching rails_serve_static_assets 0.0.5

       Installing rails_serve_static_assets 0.0.5

       Fetching rails_stdout_logging 0.0.5

       Installing rails_stdout_logging 0.0.5

       Fetching rdoc 4.3.0

       Installing rdoc 4.3.0

       Fetching rspec-support 3.8.0

       Installing rspec-support 3.8.0

       Fetching sass 3.2.19

       Installing sass 3.2.19

       Fetching turbolinks-source 5.1.0

       Installing turbolinks-source 5.1.0

       Fetching i18n 0.9.5

       Installing i18n 0.9.5

       Fetching tzinfo 1.2.5

       Installing tzinfo 1.2.5

       Fetching rack-test 0.6.3

       Installing rack-test 0.6.3

       Fetching mail 2.7.0

       Installing mail 2.7.0

       Fetching coffee-script 2.4.1

       Installing coffee-script 2.4.1

       Fetching uglifier 4.1.17

       Installing uglifier 4.1.17

       Fetching nokogiri 1.8.4

       Installing nokogiri 1.8.4 with native extensions

       Fetching sprockets 2.12.5

       Installing sprockets 2.12.5

       Fetching rails_12factor 0.0.2

       Installing rails_12factor 0.0.2

       Fetching rspec-core 3.8.0

       Installing rspec-core 3.8.0

       Fetching rspec-expectations 3.8.1

       Installing rspec-expectations 3.8.1

       Fetching rspec-mocks 3.8.0

       Installing rspec-mocks 3.8.0

       Fetching turbolinks 5.1.1

       Installing turbolinks 5.1.1

       Fetching rspec 3.8.0

       Installing rspec 3.8.0

       Fetching activesupport 4.1.6

       Fetching sdoc 0.4.2

       Installing sdoc 0.4.2

       Installing activesupport 4.1.6

       Fetching actionview 4.1.6

       Fetching activemodel 4.1.6

       Fetching jbuilder 2.6.4

       Installing activemodel 4.1.6

       Installing jbuilder 2.6.4

       Installing actionview 4.1.6

       Fetching activerecord 4.1.6

       Installing activerecord 4.1.6

       Fetching actionpack 4.1.6

       Installing actionpack 4.1.6

       Fetching actionmailer 4.1.6

       Fetching railties 4.1.6

       Fetching sprockets-rails 2.3.3

       Installing actionmailer 4.1.6

       Installing sprockets-rails 2.3.3

       Installing railties 4.1.6

       Fetching jquery-rails 3.1.5

       Fetching rails 4.1.6

       Fetching coffee-rails 4.0.1

       Installing coffee-rails 4.0.1

       Fetching sass-rails 4.0.5

       Installing jquery-rails 3.1.5

       Installing sass-rails 4.0.5

       Installing rails 4.1.6

       Bundle complete! 15 Gemfile dependencies, 54 gems now installed.

       Gems in the groups development and test were not installed.

       Bundled gems are installed into ./vendor/bundle.

       Bundle completed (22.78s)

       Cleaning up the bundler cache.

-----> Installing node-v8.10.0-linux-x64

-----> Detecting rake tasks

-----> Preparing app for Rails asset pipeline

       Running: rake assets:precompile

       /tmp/build_08716fff5e55005d68d2f9475e33fcff/vendor/bundle/ruby/2.4.0/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated

       /tmp/build_08716fff5e55005d68d2f9475e33fcff/vendor/bundle/ruby/2.4.0/gems/activesupport-4.1.6/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated

       Segmentation fault (core dumped)

 !

 !     Precompiling assets failed.

 !

 !     Push rejected, failed to compile Ruby app.

 !     Push failed

1 个答案:

答案 0 :(得分:0)

在本地输入$ RAILS_ENV=production rake assets:precompile 让我知道这是否有效吗?