Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Ruby on Rails和Heroku“应用程序崩溃”_Ruby On Rails_Heroku_Crash - Fatal编程技术网

Ruby on rails Ruby on Rails和Heroku“应用程序崩溃”

Ruby on rails Ruby on Rails和Heroku“应用程序崩溃”,ruby-on-rails,heroku,crash,Ruby On Rails,Heroku,Crash,关于这个问题,我已经浏览了很多论坛帖子,但我还没有找到解决办法 应用程序在本地工作,但在Heroku上不工作 我错过了什么 Heroku日志: 看起来你忘记迁移了 heroku运行rake数据库:迁移 线索在里面 /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable o

关于这个问题,我已经浏览了很多论坛帖子,但我还没有找到解决办法

应用程序在本地工作,但在Heroku上不工作

我错过了什么

Heroku日志:


看起来你忘记迁移了

heroku运行rake数据库:迁移

线索在里面

/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `current_user' for Head2headBet(Table doesn't exist):Class (NameError)

2013-04-01T20:24:53+00:00应用程序[web.1]:from/app/app/models/head2head\u bet.rb:12:in`

看起来您忘记迁移了

heroku运行rake数据库:迁移

线索在里面

/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined local variable or method `current_user' for Head2headBet(Table doesn't exist):Class (NameError)

2013-04-01T20:24:53+00:00应用程序[web.1]:from/app/app/models/head2head\u bet.rb:12:根据数据库的状态,您可以尝试以下任何命令

heroku run rake db:migrate
heroku run rake db:reset # WARNING DESTRUCTIVE
heroku run rake db:setup # WARNING DESTRUCTIVE

正如John Baynon所说,线索在table Not Existence行中,根据数据库的状态,您可以尝试以下任何命令

heroku run rake db:migrate
heroku run rake db:reset # WARNING DESTRUCTIVE
heroku run rake db:setup # WARNING DESTRUCTIVE

正如John Baynon所说,线索在table not exist line中

好的,我以前做过db:migrate,但它仍然崩溃。HEROKU日志:2013-04-01T22:25:37+00:00 HEROKU[路由器]:at=错误代码=H10 desc=应用程序崩溃方法=GET path=/host=majorleagueboting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=2013-04-01T22:25:38+00:00 HEROKU[路由器]:at=error code=H10 desc=App crash method=GET path=/puq5so.com?g=49501E2D-56F4-42FB-B15E-C774D06A7D24&s=5FA810DC-7AF7-11E2-97F6-12313b08201&z=2631617主机=majorleaguebotting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=service=status=503字节=使用$heroku pg:psql-a majorreaguebotting,你能确认Head2headBet表存在吗?好的,我以前做过db:migrate,但它仍然崩溃。HEROKU日志:2013-04-01T22:25:37+00:00 HEROKU[路由器]:at=错误代码=H10 desc=应用程序崩溃方法=GET path=/host=majorleagueboting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=2013-04-01T22:25:38+00:00 HEROKU[路由器]:at=error code=H10 desc=App crash method=GET path=/puq5so.com?g=49501E2D-56F4-42FB-B15E-C774D06A7D24&s=5FA810DC-7AF7-11E2-97F6-12313b08201&z=2631617主机=majorleaguebotting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=service=status=503字节=使用$heroku pg:psql-a majorreaguebotting,你能确认Head2headBet表存在吗?好的,我以前做过db:migrate,但它仍然崩溃。HEROKU日志:2013-04-01T22:25:37+00:00 HEROKU[路由器]:at=错误代码=H10 desc=应用程序崩溃方法=GET path=/host=majorleagueboting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=2013-04-01T22:25:38+00:00 HEROKU[路由器]:at=error code=H10 desc=App crash method=GET path=/puq5so.com?g=49501E2D-56F4-42FB-B15E-C774D06A7D24&s=5FA810DC-7AF7-11E2-97F6-12313b08201&z=2631617主机=majorleaguebotting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=这只是一个一般性错误,你能编辑你的帖子以包含完整的跟踪吗?好的,我以前做过db:migrate,但它仍然崩溃了。HEROKU日志:2013-04-01T22:25:37+00:00 HEROKU[路由器]:at=错误代码=H10 desc=应用程序崩溃方法=GET path=/host=majorleagueboting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=2013-04-01T22:25:38+00:00 HEROKU[路由器]:at=error code=H10 desc=App crash method=GET path=/puq5so.com?g=49501E2D-56F4-42FB-B15E-C774D06A7D24&s=5FA810DC-7AF7-11E2-97F6-12313b08201&z=2631617主机=majorleaguebotting.herokuapp.com fwd=173.16.26.137 dyno=connect=service=status=503字节=这只是一个一般性错误,能否编辑帖子以包含完整跟踪?