Espresso

Publishing and Servers

Espresso can put your site on its server for you: every changed file at once, after you have reviewed the changes, or each file as you save it.

Topics

Adding a server

Click the Servers button (the cloud) in a project window's toolbar, or choose File ⟩ Project Servers…. The sidebar changes to show the project's servers. Click Back in the toolbar to return to your files.

There are two places a server can be attached:

Add a server and fill in how to connect to it:

Click Next, and Espresso connects and shows the server's folders. Choose the folder that corresponds to your project's folder, which is the one your site is served from, often named public_html or www, and click Choose Mirror Folder.

Hold the mouse button down on the Servers button for a menu of the project's servers, from which you can start a Sync Review or browse any of them.

Key-based authentication

For SFTP, you can sign in with an SSH key instead of a password. Click the key in the password field and choose:

If the key has a passphrase, enter it in the field, which is now labeled Key Passphrase.

Choose Authenticate with Password to go back to a password.

If Automatic does not find a newer kind of key, such as an Ed25519 key, add the key to ssh-agent (with ssh-add in Terminal) or pick its file with Choose Key….

Sync Review

A Sync Review compares your project with the server and proposes what to copy. Nothing is published until you have reviewed the proposed changes.

Hold the mouse button down on the Servers button and choose Sync Review… for a server. A Sync tab opens. Click to start the review, and Espresso lists the files that differ, in two columns: your project on one side, the server on the other. A file that is on only one side is shown faintly on the other, where it will arrive.

Each row has a menu that says what will be done with the file:

When the list is as you want it, click the button at the top to start the sync. The rows fill in as the files are copied.

The menu in the Sync tab's location field chooses what a review proposes:

It also chooses how a changed file is recognized: by its modification date, or by its size.

Quick Publish

With Quick Publish on, each file is uploaded to the server as you save it.

When a file belongs to a folder that has a server, its tab carries the Quick Publish mark: three dots when Quick Publish is off, an arrow when it is on. Click the mark to turn Quick Publish on or off and to choose which server it uploads to, or hold option and click to switch it directly.

Quick Publish is for the whole project, not for one file, and it is off again each time you open the project.

Publishing particular files

Select files or folders in the sidebar and choose File ⟩ Actions ⟩ Publish To and the server. They are uploaded immediately.

Browsing a server

To look at what is on a server, and to rename, delete or edit files there, see Remote files.

What is never published

Espresso leaves these out of everything it transfers: the files of version control systems (.git, .gitignore, .svn, .hg and the like), .DS_Store and Thumbs.db, and its own copies of unsaved changes.

In a project that uses Dynamo for the whole project, it is the built site that is published, not the files you edit.

LatteAI never publishes. See What LatteAI can and cannot do.