Heroku db:推送错误

时间:2012-07-01 21:26:53

标签: database heroku

每当我尝试heroku db:push时,都会收到以下错误:

Saving session to push_201207011424.dat..
!!! Caught Server Exception
HTTP CODE: 503
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title></head>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
    </html>

我完全不知道为什么会这样。有什么想法吗?

2 个答案:

答案 0 :(得分:0)

请尝试以下操作:

heroku restart

heroku db:push --confirm <app-name>

答案 1 :(得分:0)

您可以在控制台中执行以下命令:

heroku logs | tail

然后您的输出类似于:

2016-04-20T10:56:17.509354+00:00 heroku[router]: 
at=error code=H12 desc="Request timeout" method=POST [...]

指示的错误代码为您提供了更多见解,您可以在此处查看:https://devcenter.heroku.com/articles/error-codes