Connect to a web server | WebStorm (original) (raw)

WebStorm distinguishes among the following three types of "local development — deployment server" configurations:

Before you start

Synchronization with servers, uploading, downloading, and managing files on them are provided via the FTP/SFTP/WebDAV Connectivity bundled plugin, which is by default enabled. If the plugin is disabled, activate it in the Plugins page of the Settings dialog. For more information, refer to Install plugins.

Make sure the web server is configured and running. For more information, refer to the web server official documentation.

You can define as many configurations as necessary, thus enabling flexible switching between upload/download setups.

If you need to deploy code to multiple servers, you can create a server group and avoid deploying to each server individually.

Server access configuration

WebStorm controls interaction with servers through server access configurations. Anytime you are going to use a server, you need to define a server access configuration, no matter whether your server is on a remote host or on your machine.

A server access configuration defines the following:

You can define as many configurations as necessary, thus enabling flexible switching between upload/download setups.

If you need to deploy code to multiple servers, you can create a server group and avoid deploying to each server individually.

Default server access configuration

You can set a server configuration as default to have WebStorm silently apply it in the following cases:

  1. In the Settings dialog (Ctrl+Alt+S) , go to , select the required server access configuration in the central pane, and click the Use as default button on the toolbar.
    Alternatively, click the Default Deployment Server widget in the WebStorm status bar and select the desired server or server group from the popup menu.
    Selecting a default deployment server in WebStorm status bar
  2. To configure the upload to the default server, go to .

Visibility of server access configuration

Once configured, a server access configuration can be used in all existing WebStorm projects. You can restrict the use of a configuration to the current project.

  1. In the Settings dialog (Ctrl+Alt+S) , go to , and select the required server access configuration in the central pane.
  2. Use the Visible only for this project checkbox to enable reuse of this server access configuration in other projects.
    • Select the checkbox to restrict the use of the configuration to the current project. Such configuration cannot be reused outside the current project. It does not appear in the list of available configurations in other projects.
      The server configuration settings are stored in the .idea directory together with the project, which allows sharing them between team members through a VCS.
      In the list of server access configurations in the left-hand pane, the configurations visible only in the current project are marked with the Visible only in current project icon icon.
    • When the checkbox is cleared, the configuration is visible in all WebStorm projects. Its settings can be reused across several projects.

Last modified: 11 October 2024