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

后端 未结 6 1979
陌清茗
陌清茗 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:21

    "Foreman will display to the terminal output anything written to stdout by the processes it launches." - ddollar See foreman-issues#57

    BTW, you can use tailf into Procfile to see logs

    web: bundle exec rails server thin -p $PORT
    log: tail -f log/development.log
    

    Tip: tailf doesn't exist in OSX, using tail -f -n 40 log/development.log works.

提交回复
热议问题