【问题标题】:How can you see your rails server running on heroku, so you can see full output while sending REST requests?如何查看在 heroku 上运行的 rails 服务器,以便在发送 REST 请求时查看完整输出?
【发布时间】:2014-11-30 08:23:00
【问题描述】:

通常,如果您使用本地主机,则只需运行

rails s

从终端,然后当你点击你的网络服务器时,你可以看到输出。

但是,当我跑步时

heroku run rails s

然后我在 heroku 上打开我的网络服务器,我没有像使用 localhost “rails s”时那样得到任何输出。

有没有办法做到这一点?

【问题讨论】:

标签: ruby-on-rails rest heroku


【解决方案1】:

如果您想查看实时服务器日志,请使用此命令

heroku logs -t

还有更多选择,看看这个答案heroku - how to see all the logs

【讨论】:

    【解决方案2】:

    您可以在终端中使用heroku logs 命令查看日志,就像使用rails s 命令一样。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-30
      • 2021-03-04
      • 1970-01-01
      • 1970-01-01
      • 2015-12-07
      • 1970-01-01
      相关资源
      最近更新 更多