Application server run configurations
To run or debug your applications on an application server, you need an application server run/debug configuration. This configuration can do several things for you:
Build the artifacts from your source code.
Start the application server locally or connect to a running local or remote server.
Deploy the artifacts to the server and open the relevant URL.
If you are debugging, it can start the app in debug mode and connect the debugger.
Create an application server run configuration
From the main menu, select.
Click and select the configuration type that corresponds to the application server that you will use.
Use a Local application server run configuration if you want it to start the server locally before deploying the artifacts.
Use a Remote application server run configuration if you want it to deploy artifacts to a running remote or local server.
You can configure the application server directly from the Run/Debug Configurations dialog. To do this, select the application server run configuration and click Configure next to the Application server selector.
When you create the application server run configuration, it will likely show an error, saying that you need to specify the artifacts that you want to deploy. Once you do this, the configuration will add the Build artifact task to the list of Before launch tasks so that it will build the artifacts every time before deploying them. Here is how a properly configured application server run configuration might look:
To run the configuration, press Alt+Shift+F10 and select the created application server configuration.
Alternatively, if you have your run configuration selected in the main toolbar at the top, you can click or press Shift+F10 to run it.
You can also use the Services tool window to list and manage all available application server running configurations.