Create a local server configuration | WebStorm (original) (raw)

A local server is a server that runs in a local or mounted folder and serves files to a local URL address. In a local server configuration, you do the development in a WebStorm project, and then upload the project files to the document root on the server.

To create a local server configuration in WebStorm, you need to set up connection between WebStorm and the server and configure mapping between the WebStorm project and the project folder on the server and its corresponding URL path.

1. Specify the name, type, and visibility of a server configuration

  1. Press Ctrl+Alt+S to open settings and then select .
    Alternatively, go to in the main menu.
  2. In the left-hand pane that lists all the existing server configurations, click Add Add item and select Local or mounted folder in the popup menu.
    Add a server: Local or mounted folder
  3. In the Create new server dialog that opens, type the name of the server to create and click OK. The Create new server dialog closes and you return to the Connection tab of the Deployment node.
  4. Click the Use as default button on the toolbar to mark the server as default.
  5. Clear the Visible only for this project checkbox to enable reuse of this server access configuration in other projects.

2. Set up connection to the server

In the tab (Ctrl+Alt+S ), specify the server settings:

Specify the server configuration root and the URL address to access it

3. Map project folder to a server folder and URL path

In the tab (Ctrl+Alt+S ), specify the mapping between the project opened in WebStorm and the folder under the server document root that shall correspond to it:

Map project folders to folders on the server and the URL addresses to access them

Now that you have the server configuration added, you can access the server's files and folders in the Remote Host tool window. Go to in the main menu, and in the tool window that opens, select the configured server from the drop-down list.

Open the Remote Host tool window and select the server

Last modified: 08 October 2024