Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git@heroku.com:tranquil-crag-9767.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:tranquil-crag-9767.git'
为什么会发生这种情况?我已经检查过所有内容都已正确设置,并且与git的连接很好。
答案 0 :(得分:11)
首先尝试从heroku中拉出你的主人。
$ git pull heroku master
然后再推它。如果您仍然遇到相同的错误,请强行推送您的代码
$ git push heroku master -f