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上显示错误_Ruby On Rails_Heroku - Fatal编程技术网

Ruby on rails 引脚不工作,在heroku上显示错误

Ruby on rails 引脚不工作,在heroku上显示错误,ruby-on-rails,heroku,Ruby On Rails,Heroku,我用一本书创建了第一个应用程序,但遇到了问题 我应该写 rails g scaffold pins description:string 然后 rake db:migrate heroku run rake db:migrate 现在我的网站应该在myLinkFromHeroku.herokuapp.com/pins上运行 但它不起作用,我只看到: We're sorry, but something went wrong. If you are the application owner

我用一本书创建了第一个应用程序,但遇到了问题

我应该写

rails g scaffold pins description:string
然后

rake db:migrate

heroku run rake db:migrate
现在我的网站应该在
myLinkFromHeroku.herokuapp.com/pins上运行

但它不起作用,我只看到:

We're sorry, but something went wrong.
If you are the application owner check the logs for more information.

我现在该怎么办?为什么这不起作用?“日志”是“最新活动”?我只能从控制台运行heroku logs-n 1500来查看日志。希望这些日志能提供更多信息。1500是heoku的最大行数限制


heroku web上的最新活动不是日志。

我发现了这一点,但我让heroku运行rake db:migrate-----------ActionView::Template::Error(PG::UndefinedTable:Error:关系“pins”不存在,或者说您没有运行heroku运行rake db:migrate。请确保此命令在您的机器上成功运行,我看到了“无法运行超过1个自由大小的dynos。”您有两个从控制台到heroku的连接。请尝试终止以前的连接。请查看此链接以获取帮助。