1

In Open Liberty server there are several goals to start it like liberty:run, liberty:start and liberty:dev.

In the docs I see that run executes the server in foreground and start in background but I can't find if the development mode dev executes it in foreground or background.

Thanks in advance.

Paco Abato
  • 3,920
  • 4
  • 31
  • 54
  • If you want to see the `dev` mode in action, have a look at the following video: https://www.youtube.com/watch?v=oZVVTO5m4ss – rieckpil Jan 18 '20 at 14:53

1 Answers1

3

Dev mode runs in the foreground just like liberty:run. The main difference / advantage between the two is the hot reload feature which will pick up source changes in your app and reload the server and tests. More information about dev mode can be found here: https://openliberty.io/blog/2019/10/22/liberty-dev-mode.html

KyleAure
  • 465
  • 4
  • 15
  • I think so. I found that in `dev` mode the server keep responding to key events in the console and this is a strong clue that it runs in foreground. But I would like an official documentation statement about it. – Paco Abato Jan 18 '20 at 11:15