问题
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'
Any ideas why this is happening? I have checked that everything is properly set up, and the connection to git is good.
回答1:
First try to pull your master from heroku.
$ git pull heroku master
and then push it again. If you are still getting the same error then push your code with force
$ git push heroku master -f
来源:https://stackoverflow.com/questions/21516561/remote-rejected-master-master-pre-receive-hook-declined