Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compound configuration in intellij

I have several applications. Each of them is deployed in its own application server. It's done this way because it minimizes time to redeploy each application when a change is made only in that application. This is because only one app server with one application will be restarted, which takes less time.

Anyway, I need to start all of those application servers in a certain order and in debug mode. Intellij IDEA has a compound configuration which allows you to start multiple applications. But it has 2 significant flaws: it doesn't allow you to specify the order in which applications should be started and it seems to not allow to start them in debug mode. So is it possible to somehow achieve those goals?

like image 867
dhblah Avatar asked Dec 18 '15 08:12

dhblah


2 Answers

The multirun plugin is a better implementation for this. You can define the run order and even more importantly debug works.

https://github.com/rkhmelyuk/multirun

like image 164
JamieB Avatar answered Oct 19 '22 16:10

JamieB


You can add tasks to a Run/Debug configuration and configure their order with before launch options.

enter image description here

https://www.jetbrains.com/help/idea/run-launcher.html#before-launch-options https://youtrack.jetbrains.com/issue/IDEA-181164

like image 34
Michael_H Avatar answered Oct 19 '22 16:10

Michael_H