2

导轨 3.2.13

好像我的 heroku 应用程序突然停止了预编译。

当我做 git push heroku master 时,它没有错误地完成。此外,当我执行 heroku rake db:migrate 时,一切似乎都很好。但是当我尝试加载站点或运行“heroku run rails c”时,我收到一个应用程序错误。在日志中,我看到它无法识别我的“gmaps4rails”gem。(这不仅仅是在开发中)。这在我最后一次重大提交之前工作得非常好,所以我一定是坏了一些东西,我只是不知道是什么。该网站在开发中运行良好。

尝试以我能找到的各种方式重建heroku db,但没有结果。

这是heroku日志转储:

2013-10-24T22:09:02.244984+00:00 heroku[api]:使用bundle exec rake db:migratexxx@yahoo.com的命令启动进程
2013-10-24T22:09:10.239594+00:00 heroku[run.8498]:等待客户端
2013-10-24T22:09:10.319099+00:00 heroku[run.8498]:使用命令bundle exec rake db:migrate
2013-10-24T22:09:11.463254+00:00 heroku[run.8498] 启动进程:状态从开始变为向上
2013-10-24T22:09:15.090835+00:00 heroku[run.8498]:进程以状态 0 退出
2013-10-24T22:09:15.109542+00:00 heroku[run.8498]:状态从高达完成
2013-10-24T22:15:48.976455+00:00 heroku[web.1]:状态从
崩溃变为开始 2013-10-24T22:15:56.503853+00:00 heroku[web.1]:启动过程命令bundle exec rails server -p 51113
2013-10-24T22:15:59.948210+00:00 app[web.1]: => 启动 WEBrick
2013-10-24T22:15:59.948210+00:00 app[web.1]: => Rails 3.2.13应用程序在“ http://0.0.0.o:51113
2013-10-24T22:15:59.948210+00:00 app[web.1]: => 调用 -d 以分离
2013-10- 24T22:15:59.948210+00:00 app[web.1]: => Ctrl-C 关闭服务器
2013-10-24T22:15:59.948210+00:00 app[web.1]: 连接到由 DATABASE_URL 指定的数据库
2013-10-24T22:16:00.937338+00:00 应用程序 [web.1]:来自 /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb: 251:in require' <br> 2013-10-24T22:16:00.937338+00:00 app[web.1]: from /app/app/models/project.rb:52:in'
2013-10-24T22:16:00.937338+00:00 app[web.1]: from /app/app/models/project.rb:29:in <top (required)>' <br> 2013-10-24T22:16:00.937338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:inblock in require'
2013-10-24T22:16:00.936345+00:00 app[web.1]:退出
2013-10-24T22:16:00.937338+00:00 app[web.1]:来自 /app/vendor/bundle/ruby /2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in load_dependency' <br> 2013-10-24T22:16:00.937338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:inload_missing_constant'
2013-10-24T22:16:00.937338+00:00 app[web.1]:/app/vendor /bundle/ruby/2.0.0/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:inacts_as_gmappable method_missing': undefined method' for # (NoMethodError) 201

任何帮助将不胜感激。

4

1 回答 1

0

为了查看数据库的状态以了解它可能如何影响您的应用程序,请尝试

heroku pg:psql(假设 Postgres)

并从那里运行您的 SQL 命令。请参阅此处了解更多信息。

我还能够将我的 IDE 连接到 Heroku 上的数据库。我正在使用 RubyMine,因此需要使用正确的 JDBC URL 来实现这一点。

于 2013-10-24T23:26:40.643 回答