# Tutorial: Deployment in GoLand

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/en-us/help/go/llms.txt).

Copy project files to a local or mounted folder, compare the copies, and configure automatic upload when you save changes. This setup transfers files, it does not build or start your application.

Before you start, open a project that contains a `README.md` file. Create a writable destination folder outside the project, such as `/Users/jetbrains/deployment` on macOS or `C:\deployment` on Windows. Use your own folder path in the steps below.

## Configure the deployment server

Procedure: Add a new server

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Build, Execution, Deployment | Deployment`.

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

2. Click ![Add item](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.expui.general.add.svg) and select Local or mounted folder.

3. In the Create New Server dialog that opens, type the server name and click OK.

The new configuration appears in the list. The default Web server URL does not start a web server. You do not need a web server for this example.

Procedure: Specify the server root folder

1. In the Folder field, specify the directory to which the project files will be uploaded.

Enter the absolute path to the destination folder you created, or click ![Browse](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.general.ellipsis.svg) to select it.

2. Keep Visible only for this project selected to use this configuration in the current project. Clear it if you want to use the configuration in other projects or export it later.

Procedure: Specify the deployment path

1. Next, switch to the [Mappings tab](deployment-mappings-tab.html).

Keep Local path set to the project root.

2. In the Deployment path field (which is by default empty), specify the folder on your server where GoLand will upload data from the folder specified in the Local path field.

Enter `Application`. This path is relative to the destination folder. For example, if Folder is `/Users/jetbrains/deployment`, GoLand uploads the files to `/Users/jetbrains/deployment/Application`.

3. Leave Web path blank. This example does not serve files over HTTP.

After you apply the changes, the server is ready to use.

## Browse remote hosts

Select `Tools | Deployment | Browse Remote Host`. In the Remote Host tool window, select MyRemoteServer to browse the destination folder.

## Deploy files

Procedure: Upload a file to the server

1. In the Project tool window `Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+Shift+E` (VSCode), `⌘ ⇧ E` (VSCode (macOS)), right-click `README.md`.

2. Select `Deployment | Upload to MyRemoteServer`. If this action is not shown, select `Deployment | Upload To…` and choose MyRemoteServer. Check the result in the File Transfer tool window.

To upload an entire folder, follow the same steps with the folder selected in the Project tool window.

Procedure: Compare remote and local versions

There is a local and a remote copy of the `README.md` file, and they are identical. Modify the local version.

* In the [Remote Host tool window](remote-host-tool-window.html) tool window, right-click `README.md` and select Compare with Local Version . GoLand opens the Diff Viewer.

![Diff viewer](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij_deployment_diff_viewer.png)

Procedure: Download the file from the server

1. In the [Remote Host tool window](remote-host-tool-window.html) tool window, right-click the `README.md` file and select Download from here . GoLand shows a warning.

2. Confirm the download to replace your local changes with the server version. You can also download a directory which server path is mapped to a local project folder. You do not need to upload the directory first.

## Synchronize the changes

Procedure:

1. Change `README.md` in the editor and save it.

2. Right-click `README.md` in the Project tool window and select `Deployment | Sync with Deployed To…`, then choose MyRemoteServer. If it is the default server, select Sync with Deployed to MyRemoteServer….

3. In the synchronization view, review the differences. For `README.md`, set the action to upload the local version to the destination folder. Click Synchronize Selected.

![Synchronization view with the local README.md on the left, the deployed copy on the right, and an upload action selected.](https://resources.jetbrains.com.cn/help/img/idea/2026.3/ij_deployment_sync.png)

## Automatically upload files to the default server

Automatic upload copies saved local changes to the default deployment server. Changes made on the server are not downloaded automatically.

By default, automatic upload is set to Never. Selecting a default server does not enable automatic upload.

Procedure: Define the default server

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Build, Execution, Deployment | Deployment`.

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

2. From the list of servers, select the one you want to make default and click ![the Use as default button](https://resources.jetbrains.com.cn/help/img/idea/2026.3/app.actions.setDefault.svg) on the toolbar above the list of servers.

> **Tip:**
> You can also click the Default Deployment Server widget in the GoLand status bar and select the desired server or server group from the popup menu.

Procedure: Enable automatic upload

As soon as the default server is set, you can make upload to this server automatic.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) to open settings and then select `Build, Execution, Deployment | Deployment | Options`.

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

2. From the Upload changed files automatically to the default server  drop-down list, select one of the following options:

* Always: upload a file upon every automatic and explicit save. > **Tip:** > You can also enable this option in `Tools | Deployment | Automatic Upload` in the main menu.

* On explicit save action: upload a file after save only if this save was invoked manually by choosing `File | Save All` or pressing `Ctrl+S` (Windows), `⌘ S` (macOS), `⌘ S` (IntelliJ IDEA Classic (macOS)), `⌘ S` (macOS System Shortcuts), `Ctrl+S` (XWin), `Ctrl+S` (GNOME), `Ctrl+S` (KDE), `Ctrl+X, Ctrl+S` (Emacs), `Ctrl+S` (Sublime Text), `⌘ S` (Sublime Text (macOS)), `Ctrl+K, S` (VSCode), `⌘ ⌥ S` (VSCode (macOS)).

The Always mode is not recommended for deploying to production: incomplete code can be uploaded while developing, potentially breaking the production application.

## Upload external changes

External changes are changes made outside the IDE, such as a Git branch change or files updated by a code generator. They can come from tools run inside or outside GoLand.

To include these changes in automatic upload, open `Settings | Build, Execution, Deployment | Deployment | Options`. Set Upload changed files automatically to the default server to Always or On explicit save action, and clear Skip external changes.

With On explicit save action, use `File | Save All` `Ctrl+S` (Windows), `⌘ S` (macOS), `⌘ S` (IntelliJ IDEA Classic (macOS)), `⌘ S` (macOS System Shortcuts), `Ctrl+S` (XWin), `Ctrl+S` (GNOME), `Ctrl+S` (KDE), `Ctrl+X, Ctrl+S` (Emacs), `Ctrl+S` (Sublime Text), `⌘ S` (Sublime Text (macOS)), `Ctrl+K, S` (VSCode), `⌘ ⌥ S` (VSCode (macOS)) to upload the pending changes.

With Never, automatic upload is disabled and Skip external changes is unavailable.

## Export/import deployment settings

Now that you have a deployment server all set up, you can export the server configuration settings and then import them on another computer.

> **Tip:**
> You can export the settings only if the deployment configuration is global. You can make it global in settings: press ( `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) ), go to `Build, Execution, Deployment | Deployment` , and disable the Visible only for this project option in the configuration you want to export.

Procedure: Export settings to a ZIP archive

1. Select `File | Manage IDE Settings | Export Settings` from the main menu.

2. In the Export Settings dialog that opens, make sure that the WebServers checkbox is selected and specify the path to the target archive.

![Export the server deployment settings](https://resources.jetbrains.com.cn/help/img/idea/2026.3/export_deployment_settings.png)

Procedure: Import settings from a ZIP archive

1. Select `File | Manage IDE Settings | Import Settings…` from the main menu.

2. Select the ZIP archive that contains your settings in the dialog that opens.

3. Select the settings you want to apply in the Select Components to Import dialog that opens and click OK.

## Summary

You configured a local or mounted destination, copied and compared files, and enabled automatic upload. To transfer files to another computer over SFTP, create a [remote server configuration](creating-a-remote-server-configuration.html).

## See also

### Procedures

[Deployment](deploying-applications.html)

### Reference

[Deployment](settings-deployment.html)

