Publish a website
Compare a local folder with its server folder, see what is new or changed, and upload only that — deleting only what you choose.
Publish compares a folder on your Mac with a folder on a server and uploads only what is different. You see the list of changes first, so nothing happens by surprise.
Publish for the first time#
- Connect to your server. Put your Mac on the other side.
- Open the local folder with your site on one side, and the matching folder on the server (for example
public_html) on the other. - Choose File › Publish… or press ⇧⌘P.
- Ferry compares the two folders, including everything inside them, and shows the result in three lists:
- New — files that exist only on your Mac.
- Modified — files that differ from the server's copy.
- Only on the Server — files that exist only on the server.
- Review the lists. Everything in New and Modified is selected by default; untick anything you don't want to upload. Each list has a Select All / Deselect All button.
- Click the button at the bottom, which says how many files it will send (for example Publish 12 files).
Ferry creates any missing folders, uploads the files you ticked (through the normal transfer queue, so you can pause it), and keeps a copy of each file it replaces in Previous Versions.
Deleting files from the server#
Files that are only on the server are never deleted unless you tick them. This protects uploads, logs and configuration that only live there. If you do tick one, Ferry deletes it when you publish, and the button says how many files it will delete.
Ignore files#
The Ignore field lists names to skip, separated by commas. * works as a wildcard. The default is:
.git, node_modules, .DS_Store, .env, *.ferry-part
Change it to match your project, for example to add *.map or .vscode.
Next time: one click#
After the first publish, Ferry remembers the pair of folders for that server. From then on:
- A Publish button appears in the toolbar once you are connected to that server, and it uses the saved folders even if you are looking at other ones.
- You can also right-click the server's card in the server list and choose Publish… to connect and publish in one step.
- If you want to publish the folders that are open right now instead, click Use Open Folders Instead.
The sheet shows the saved folders under Saved folders for this server.
Good to know#
- Publishing goes through the usual transfer queue, so your speed limits and the number of simultaneous transfers apply.
- To check the result, use Open in Browser after setting the server's Website — see Add and manage servers.