5

我是heroku的新手。所以,对不起这个愚蠢的问题。我的问题是,我不知道错误是什么,但可以肯定的是我无法通过 ssh 连接到我的 heroku 服务器。如果可能的话,我想知道如何获得更详细的错误日志或类似的东西。我试过添加-v--verbose切换到heroku命令,但没有运气。

贝娄是我所做的完整动作,好吧,基本上我遵循了heroku网站上写的内容。

以下是根据 heroku 的教程站点通过 ssh 连接的方法。

xxx@yyy:~/xwprog/heroku-sample-gradle1
$ heroku ps:exec
Establishing credentials... done
Connecting to web.1 on ⬢ guarded-fjord-42322...
 ▸    There was an error connecting to the dyno!

当前运行的进程

xxx@yyy:~/xwprog/heroku-sample-gradle1
$ heroku ps
Free dyno hours quota remaining this month: 550h 0m (100%)
For more information on dyno sleeping and how to upgrade, see:
https://devcenter.heroku.com/articles/dyno-sleeping

=== web (Free): build/install/gradle-getting-started/bin/gradle-getting-started (1)
web.1: up 2018/03/10 16:56:04 +0700 (~ 16m ago)

试图运行 bash,但它确实有效。缺点是每次断开连接时,状态也会重置,并且容易断开连接,并显示错误消息ECONNRESET: read ECONNRESET

xxx@yyy:~/xwprog/heroku-sample-gradle1
$ heroku run bash
Running bash on ⬢ guarded-fjord-42322... up, run.3587 (Free)
~ $ 

谢谢你。

4

0 回答 0