This question already has answers here:
remote rejected master -> master (pre-receive hook declined)

(22个答案)


6年前关闭。



Tasks: TOP => assets:precompile
       (See full trace by running task with --trace)
 !
 !     Precompiling assets failed.
 !

 !     Push rejected, failed to compile Ruby app

To [email protected]:tranquil-crag-9767.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:tranquil-crag-9767.git'

任何想法为什么会这样?我检查了一切是否都已正确设置,并且与git的连接良好。

最佳答案

首先尝试从heroku中拉您的主人。

$ git pull heroku master

然后再推一次如果仍然遇到相同的错误,请强行推送代码
$ git push heroku master -f

关于ruby-on-rails - ! [远程拒绝]主机->主机(预接收 Hook 被拒绝),我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21516561/

10-11 05:45