0

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

standac
  • 1,027
  • 1
  • 11
  • 26
  • 2
    Possible duplicate of [Where does forever store console.log output?](https://stackoverflow.com/questions/21021186/where-does-forever-store-console-log-output) – jonrsharpe Oct 30 '17 at 12:18
  • Then probably https://stackoverflow.com/q/10368973/3001761 – jonrsharpe Oct 30 '17 at 12:23
  • What exactly do you mean by "bring the forever process to foreground"? Did you press the **CTRL + Z**? – antzshrek Oct 30 '17 at 12:33
  • @Antz **CTRL-Z** works perfectly when starting the application using: **node server.js**. But I have no control on jobs when using forever. My application outputs a "**htop**" like dashboard. I'm trying to bring the dashboard back to the terminal. – standac Oct 30 '17 at 12:39

1 Answers1

0

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

davidonet
  • 660
  • 4
  • 17