Rails3应用程序未能推送到Heroku。 “无法识别的错误”

时间:2011-09-29 18:40:06

标签: ruby-on-rails heroku

事情看起来很棒,然后它最终会窒息。观察:

$ git push heroku master
Counting objects: 12, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 109.76 KiB, done.
Total 7 (delta 4), 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
Unresolved dependencies detected; Installing...
Using --without development:test
Installing rake (0.9.2) 
Installing multi_json (1.0.3) 
Installing activesupport (3.1.1.rc1) 
   Installing builder (3.0.0) 
   Installing i18n (0.6.0) 
   Installing activemodel (3.1.1.rc1) 
   Installing erubis (2.7.0) 
   Installing rack (1.3.3) 
   Installing rack-cache (1.0.3) 
   Installing rack-mount (0.8.3) 
   Installing rack-test (0.6.1) 
   Installing hike (1.2.1) 
   Installing tilt (1.3.3) 
   Installing sprockets (2.0.0) 
   Installing actionpack (3.1.1.rc1) 
   Installing mime-types (1.16) 
   Installing polyglot (0.3.2) 
   Installing treetop (1.4.10) 
   Installing mail (2.3.0) 
   Installing actionmailer (3.1.1.rc1) 
   Installing arel (2.2.1) 
   Installing tzinfo (0.3.29) 
   Installing activerecord (3.1.1.rc1) 
   Installing activeresource (3.1.1.rc1) 
   Installing coffee-script-source (1.1.2) 
   Installing execjs (1.2.6) 
   Installing coffee-script (2.2.0) 
   Installing rack-ssl (1.3.2) 
   Installing rdoc (3.9.4) 
   Installing thor (0.14.6) 
   Installing railties (3.1.1.rc1) 
   Installing coffee-rails (3.1.1) 
   Installing jquery-rails (1.0.14) 
   Installing pg (0.11.0) with native extensions 
   Using bundler (1.0.7) 
   Installing rails (3.1.1.rc1) 
   Installing sass (3.1.7) 
   Installing sass-rails (3.1.2) 
   Installing sqlite3 (1.3.4) with native extensions 
   Installing uglifier (1.0.3) 
   Updating .gem files in vendor/cache
   Removing outdated .gem files from vendor/cache
     * spork-0.9.0.rc9.gem
   Your bundle is complete! It was installed into ./.bundle/gems/
-----> Compiled slug size is 14.4MB
-----> 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:myproject.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:myproject.git'

在此之前,我能够推送到Heroku,但应用程序未能启动,因为我错过了pg gem。所以现在pg正确地存在并且推送失败了。关于如何解决这个问题的任何想法?

2 个答案:

答案 0 :(得分:1)

您应该提交支持票。好像他们过去曾遇到过类似的问题:

http://status.heroku.com/incident/52

乍一看,spork宝石看起来很可疑。您是否在Gemfile中的组中隔离了开发宝石?

group :development, :test do
  gem 'spork'
end

答案 1 :(得分:0)

您应先检查https://status.heroku.com/

有一个未解决的问题(https://status.heroku.com/incident/212),它在54分钟前开放,与部署问题有关 - 尽管现在看来只有Cedar应用程序受到影响 - 但这并不是说在创建问题时,它不是完整的堆栈。

相关问题