Heroku push отклонен из-за нераспознанной ошибки; ошибка: не удалось нажать некоторые ссылки - PullRequest
1 голос
/ 25 ноября 2011

Пока все, что касается моего опыта работы с git / heroku, было идеальным.

Совсем недавно я пытался выдвинуть новый коммит и получил следующую "нераспознанную ошибку":

-bash> git push heroku master 
Counting objects: 29, done. 
Delta compression using up to 2 threads. 
Compressing objects: 100% (18/18), done. 
Writing objects: 100% (18/18), 1.78 KiB, done. 
Total 18 (delta 14), reused 0 (delta 0)

-----> Heroku receiving push 
-----> Ruby/Rails app detected 
-----> Detected Rails is not set to serve static_assets 
Installing rails3_serve_static_assets... done 
-----> Configure Rails 3 to disable x-sendfile 
Installing rails3_disable_x_sendfile... done 
-----> Configure Rails to log to stdout 
Installing rails_log_stdout... done 
-----> Gemfile detected, running Bundler version 1.0.7 
All dependencies are satisfied 
-----> Compiled slug size is 14.5MB 
-----> Launching... 
! Heroku push rejected due to an unrecognized error. 
! We've been notified, see http://support.heroku.com if the problem persists.

To git@heroku.com:thing-thing-1234.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to 'git@heroku.com:thing-thing-1234.git'

1 Ответ

1 голос
/ 27 ноября 2011

Oops!Задача решена.Вскоре после того, как я сделал git status и увидел, что я на самом деле не добавил файлы.Таким образом, вышесказанное было попыткой выдвинуть пустой коммит.Вот что я сделал:

-bash> RAILS_ENV=production bundle exec rake assets:precompile 
-bash> git commit -m "vendor compiled assets" 
-bash> git push heroku master

Но я должен был сделать это:

-bash> RAILS_ENV=production bundle exec rake assets:precompile 
-bash> git add .
-bash> git commit -m "vendor compiled assets" 
-bash> git push heroku master
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...