您好我尝试将我的ruby on rails app部署到heroku,这是我的错误
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to whispering-peak-4064.
remote:
To https://git.heroku.com/whispering-peak-4064.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/whispering-peak-4064.git'
我在这里看到很多解决方案,我试图运行这些命令:
RAILS_ENV=production bundle exec rake assets:precompile
rake asset:precompile
我的耙子已经流产了!
我按照这里找到的一些答案添加到我的config\application.rb
:
require 'sprockets/railtie'
config.assets.initialize_on_precompile = false
但是徒劳无功,我仍有同样的问题。
PS:我使用的是Rails 4.2.5
答案 0 :(得分:2)
我认为这一行导致了您的错误:
.clearfix:before, .clearfix:after { content: : " "; display: table; }
应该是
.clearfix:before, .clearfix:after { content: " "; display: table; }