Search code examples
node.jslinuxforever

How to bring a nodejs app started with forever to foreground?


I have a nodejs app that will output to the terminal. But when the app is started with forever "forever start server.js", nothing will output on the terminal, this is ok and expected.

Is there a way to bring the forever process to foreground in order to see the app's outputs to terminal ?

I know where forever stores the logs. My app displays output in a "dashboard" style. Looking at the logs is not what I'm trying to achieve


Solution

  • On linux, you could use screen it keeps a virtual terminal and allow a backgrounding and foregrounding with user interaction and page formatting.