Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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 shows me what is missing:

^CSIGINT received 16:49:26 system    | sending SIGTERM to all processes 16:49:26 web.1     | => Booting Thin 16:49:26 web.1     | => Rails 3.0.0 application starting in development on http://0.0.0.0:5000 16:49:26 web.1     | => Call with -d to detach 16:49:26 web.1     | => Ctrl-C to shutdown server 16:49:26 web.1     | >> Thin web server (v1.3.1 codename Triple Espresso) 16:49:26 web.1     | >> Maximum connections set to 1024 16:49:26 web.1     | >> Listening on 0.0.0.0:5000, CTRL+C to stop 16:49:26 web.1     | >> Stopping ... 16:49:26 web.1     | Exiting 16:49:26 web.1     | >> Stopping ... 

How do I fix it?

like image 680
ijverig Avatar asked Jan 03 '12 18:01

ijverig


People also ask

What are the symbols required in P&IDs?

EdrawMax provides all kinds of symbols required in P&IDs. All the instruments in a P&ID are marked by a circle with an assigned tag number and line inside it. The tag number helps in identifying the device, whereas the line is the location indicator.

What are the types of lines used in a P&ID?

Given below are the types of lines used in a P&ID. No line: A simple circle indicates that the device is in the field and is a locally mounted instrument. The device is observable in the field and is accessed by the operator. Solid Line: A solid line in the center signifies that the instrument is placed in a primary location in the control room.

What information can I get from a P&ID?

It includes all piping, instruments, valves and equipment that the system consist of. Through a P&ID, you can get the following information: The mechanical and electrical details of a given system or process,

What does the circle inside a P&ID mean?

All the instruments in a P&ID are marked by a circle with an assigned tag number and line inside it. The tag number helps in identifying the device, whereas the line is the location indicator.


1 Answers

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…

like image 180
ijverig Avatar answered Sep 29 '22 22:09

ijverig