FormidableLabs/nodejs-dashboard

Won't work when using foreman

danielrvt opened this issue · 2 comments

This is my Procfile for my LoopbackJS app:

web: nodejs-dashboard node .

The problem:
If I run nf start, the console just clears and nothing shows up (Not even an error). My app uses a bunch of environment variables and foreman really makes it a breeze to run it.

The expected result:
The dashboard should appear in the terminal running the app. This actually does happen if I run nodejs-dashboard node . instead of nf start, it just fails with foreman.

I'm not familiar with foreman but does it have a mechanism to pass through stderr/stdout? When I try the test app locally it prints ansi escape characters.

Inverting the pattern and creating a foreman npm task for the app:

"dev-nf": "nodejs-dashboard -- nf start web"

This works as expected but stderr/stdout are consolidated into a single stdout stream. Likely related to this issue: strongloop/node-foreman#130

Issue solved with reordering of process calls. Closing.