Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/64.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

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 Heroku数据库错误?无法Rake db:migrate_Ruby On Rails_Heroku - Fatal编程技术网

Ruby on rails Heroku数据库错误?无法Rake db:migrate

Ruby on rails Heroku数据库错误?无法Rake db:migrate,ruby-on-rails,heroku,Ruby On Rails,Heroku,我已经被困在这个问题上好几个小时了。我一直在来回滚动,heroku一直在撞我。我得到的错误是应用程序错误 应用程序中出现错误,无法提供您的页面。请稍后再试 如果您是应用程序所有者,请查看日志以了解详细信息 我试过多次heroku pg:reset DATABASE_URL和heroku rake db:migrate,每次都会提示这个错误 这是我的日志 2015-08-20T03:53:52.883786+00:00 heroku[run.7282]: Awaiting client 2

我已经被困在这个问题上好几个小时了。我一直在来回滚动,heroku一直在撞我。我得到的错误是应用程序错误 应用程序中出现错误,无法提供您的页面。请稍后再试

如果您是应用程序所有者,请查看日志以了解详细信息

我试过多次heroku pg:reset DATABASE_URL和heroku rake db:migrate,每次都会提示这个错误

这是我的日志

    2015-08-20T03:53:52.883786+00:00 heroku[run.7282]: Awaiting client
2015-08-20T03:53:52.917990+00:00 heroku[run.7282]: Starting process with command `bundle exec rake db:migrate`
2015-08-20T03:53:53.287377+00:00 heroku[run.7282]: State changed from starting to up
2015-08-20T03:53:58.412740+00:00 heroku[run.7282]: Process exited with status 0
2015-08-20T03:53:58.432909+00:00 heroku[run.7282]: State changed from up to complete
2015-08-20T03:54:04.586682+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=linkmony.herokuapp.com request_id=f90ecec2-49f5-4faa-9736-40bdeb637b5e fwd="76.103.13.109" dyno= connect= service= status=503 bytes=
2015-08-20T03:54:05.400560+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=linkmony.herokuapp.com request_id=44fb2fae-15b8-4359-bbbb-47c59b2a7d3b fwd="76.103.12.101" dyno= connect= service= status=503 bytes=

在终端中运行以下命令将为您提供更多信息:

$ heroku run rails console

(帽子提示:NTIMB20)

在终端中运行以下命令将为您提供更多信息:

$ heroku run rails console

(帽子提示:NTIMB20)

看看这个问题,有很多可能导致“应用程序崩溃”的问题。重复同样的场景肯定不会有帮助,但会让你感到沮丧。尝试在本地生产模式下运行应用程序。看看这个问题,有很多可能导致“应用程序崩溃”的问题。重复相同的场景肯定不会有帮助,但会让你感到沮丧。尝试在本地以生产模式运行应用程序。