PhpStorm 2016.3 Help

Options

File | Settings | Build, Execution, Deployment | Deployment | Options for Windows and Linux
PhpStorm | Preferences | Build, Execution, Deployment | Deployment | Options for OS X
Ctrl+Alt+S
/help/img/idea/2016.3/settings.png Tools | Deployment | Options


Use this page to specify additional configuration settings for uploading and downloading project files to and from local and remote servers. For more details about various server access configurations, see Working with Web Servers: Copying Files.

The options specified in this dialog box apply to all defined server configurations regardless of the server type (local, remote) and the data transfer protocol used. Protocol-specific options for server configurations of the type FTP/SFTP/FTPS are defined in the Advanced Options Dialog.

ItemDescription
Exclude items by nameIn this text box, specify patterns for the names of files and folders that you do not need to be deployed. Use semicolons as delimiters. Wildcards are welcome.

The exclusion is applied recursively. This means that if a matching folder has subfolders, the contents of these subfolders are not deployed either.

Operations loggingUse this drop-down list to specify how much detailed logging you need to have. The available options are:
  • Errors only: select this option to have the log show only errors occurred during upload.
  • Brief: select this option to have all events reflected in the log but without details.
  • Detailed: select this option to have more details on the upload shown in the log, for example, full file paths.
Stop operation on the first errorSelect this check box to have data transfer stopped as soon as an error occurs.
Overwrite up-to-date filesDo one of the following:
  • Select this check box to have all the files uploaded no matter whether they have been changed since the previous upload or not.
  • Clear the check box to upload only files that have been changed since the previous upload.
Preserve files timestampsSelect this check box to prevent resetting timestamps of files on upload.
Delete target items when source ones do not exist If this check box is selected, any file in the destination directory will be removed if the file with this name is not involved in the current upload.

This option is applicable when synchronization if performed from the Project tool window or from the Remote Host tool window.

Create empty directoriesSelect this check box to have an empty directory on the server created automatically if a new local directory has been created in your project since the last upload in the source folder.
Prompt when overwriting or deleting local itemsSelect this check box to have PhpStorm ask you for confirmation before overwriting or deleting local items for synchronization during download.
Upload changed files automatically to the default serverFrom this drop-down list, choose when you want PhpStorm to automatically upload a file to the default server. The available options are:
  • Always: choose this option to have a file uploaded upon each save, no matter automatic or explicitly invoked.
  • On explicit save action: choose this option to have a file uploaded after save only if this save was invoked manually by choosing File | Save all or pressing Ctrl+S.
  • Never: choose this option to suppress automatic upload.

The default server configuration is appointed on the Deployment page by selecting the desired configuration in the list and clicking the Use as Default toolbar button /help/img/idea/2016.3/icon_use_web_server_configuration_as_default.png.

Upload external changesSelect this check box to have PhpStorm upload also the local changes that were made using a third-party tool.
Override default permissions on filesSelect this check box to change the default permissions assigned to uploaded files on remote hosts. Click the Browse button /help/img/idea/2016.3/browseButton.png to open the Files Default Permissions dialog box, where you can manage access to uploaded files on remote hosts by assigning permissions.
Override default permissions on foldersSelect this check box to change the default permissions assigned to uploaded folders on remote hosts. Click the Browse button /help/img/idea/2016.3/browseButton.png to open the Folders Default Permissions dialog box, where you can manage access to uploaded folders on remote hosts by assigning permissions.
Warn when uploading over newer fileUse this drop-down list to define the version-control policy to apply when uploading files to remote hosts. Depending on this choice, PhpStorm either checks whether any changes have been made to the corresponding files on the remote host since you downloaded them or just overwrites the remote files.
  • No: choose this option to have the file on the remote host overwritten with its local copy silently. All the changes made to the remote file since your last synchronization will be abandoned.
  • Compare timestamp and size: if you choose this option, PhpStorm performs two checks:
    1. Compares the sizes of the local and remote files.
    2. Compares the remote file timestamp set at the moment of the last synchronization with the current remote file timestamp.

    If the files differ in their size or the remote file timestamps differ, PhpStorm opens a Difference Viewer for Files, where you can explore and integrate the differences.

    This type of check depends on the timezone setting. If the timezone setting on your local machine is different from that on the remote host, the check may be successful even though the file versions actually differ.

  • Compare content: when this option is chosen, PhpStorm compares the content of the local and remote files. If any diversions are detected, PhpStorm opens a Difference Viewer for Files, where you can explore and integrate the differences.
Notify about remote changesSelect this check box to receive notifications about changes on the remote host. The check box is available only when the Compare timestamp and size: or Compare content: option is selected in the Warn when uploading over newer file drop-down list.
SFTP advanced options (IDE level)
Add new host key to known_hostsChoose whether PhpStorm should ask about connecting to a host not mentioned in the file known_hosts. The following options are available:
  • Always: always connect and add its record to the file known_hosts.
  • Ask: ask whether PhpStorm should connect to a host and add its record to the file known_hosts
  • Never: do not connect.
Hash hosts in known_hosts fileIf this check box is selected, the new host record will be stored in hash format.

See Also

Last modified: 23 March 2017