2011-11-25 2 views
1

지금까지 내 힘내/heroku 경험까지 모든 것이 완벽했습니다.헤로 쿠 푸시가 인식 할 수없는 오류로 인해 거부되었습니다. 오류 : 일부 refs를 푸시하지 못했습니다

는 가장 최근에 나는 새로운 커밋 밀어 시도하고 다음 "알 수없는 오류"가지고 :

-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 [email protected]:thing-thing-1234.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:thing-thing-1234.git' 

답변

1

아차! 문제 해결됨. 잠시 후 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 
관련 문제