IntelliJ IDEA
 
Get IntelliJ IDEA

Application server run configurations

Last modified: 17 June 2024

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.

You can configure the application server for directly from the Run/Debug Configurations dialog. To configure the application server for this 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:

Tomcat run configuration done

To run the configuration, press AltShiftF10 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 the Run button or press ShiftF10 to run it.

You can also use the Services tool window to list and manage all available application server running configurations.