foreman only shows line with “started with pid #” and nothing else

后端 未结 6 1967
陌清茗
陌清茗 2020-12-07 20:31

When I run foreman I get the following:

 > foreman start
 16:47:56 web.1     | started with pid 27122

Only if I stop it (via ctrl-c) it

6条回答
  •  粉色の甜心
    2020-12-07 21:13

    I’ve been able to resolve this issue by 2 different ways:

    1. From https://github.com/ddollar/foreman/wiki/Missing-Output:

      If you are not seeing any output from your program, there is a likely chance that it is buffering stdout. Ruby buffers stdout by default. To disable this behavior, add this code as early as possible in your program:

      # ruby
      $stdout.sync = true
      
    2. By installing foreman via the heroku toolbelt package

    But I still don’t know what’s happening nor why this 2 ways above resolved the issue…

提交回复
热议问题