! [remote rejected] master -> master (pre-receive hook declined)

heroku, ruby, ruby-on-rails

Solution

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

Problem

``` 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.

Original source

Related problems