我正在从Cloud9将应用程序部署到Heroku。
我运行git push heroku master
。
我已经尝试运行rake assets:precompile
,但是也失败了。
这是我得到的输出;
Running: rake assets:precompile
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
rake aborted!
SystemStackError: stack level too deep
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/core_ext/numeric/conversions.rb:131:in `block (2 levels) in <class:Numeric>'
...^ That above line repeats a lot
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache.rb:138:in `local_cache_key'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache.rb:74:in `middleware'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/application/bootstrap.rb:79:in `block in <module:Bootstrap>'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/initializable.rb:30:in `run'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/application.rb:352:in `initialize!'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/config/environment.rb:5:in `<top (required)>'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/application.rb:328:in `require_environment!'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/railties-4.2.5/lib/rails/application.rb:457:in `block in run_tasks_blocks'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.0/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_c1e54300ce614b0d9e5a34b1314d6374/vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed