WebStorm 2024.1 Help

Create an in-place server configuration

In an in-place server configuration, you are using a local web server, but unlike with the local server configuration, don't upload/download or synchronize files between the WebStorm project and the project folder in the server file structure. Instead, you open the project folder from the server document root directly in WebStorm, and thus do the development on the server directly.

To create an in-place server configuration in WebStorm, you only need to specify the web server URL mapped to the server document root and the URL path to your project.

In-place server configuration
  1. Press Ctrl+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Deployment.

    Alternatively, go to Tools | Deployment | Configuration... in the main menu.

  2. The left-hand pane of the Connection tab, that opens, lists all the existing server configurations. Click the Add button and select In-place from the list.

    In the Create new server dialog that opens, type the name of the new server and click OK to return to the Connection tab.

    Configure an inplace server
  3. Specify the URL address of the server document root.

    In the Web server URL field, type the URL address associated with the document root of your server as defined in the server configuration file. This URL address will be the starting point for building the URL address of your application.

    Both HTTP and the HTTPS protocols are supported.

    For example, the default document root is set to the htdocs folder, and the default URL address to access the data in it is http://localhost. If you have changed the default port 80, you have to specify the port explicitly: http://localhost:<port>.

    Specify Web server document root URL
  4. Specify the project root folder and the URL address to access it.

    1. Open the Mappings tab.

    2. In the Local path field, specify the full path to your project root folder. Type the path manually, or click Browse button and select the folder in the dialog, that opens.

    3. In the Web path field, type the path to the project root folder relative to the server document root that you specified in your server configuration file.

    Map the project root to it URL

Optionally

Last modified: 12 April 2024