Skip to content

Publishing

Ali Çömez | Slaweally edited this page Dec 2, 2026 · 1 revision

Publishing to a server (FTP / FTPS / SFTP)

Work on project.slw, then send only the files you changed to your hosting — like Git, without Git.

Changes and publish

Connect a project

Overview → project settings (sliders icon) → Server → Connect to a server (FTP / SFTP).

Field Example
Protocol SFTP (SSH) or FTPS (FTP over TLS); plain FTP only if the host offers nothing else
Server / Port ftp.example.com · 22 for SFTP, 21 for FTP/FTPS
User / Password from your hosting panel (cPanel → FTP Accounts)
Server folder the folder that matches the project, usually /public_html
Private key file SFTP only, optional: an RSA key; the password field is then its passphrase

Save and test connects first and saves only when it works. The password is stored encrypted for your Windows user (DPAPI). For SFTP the server's key is remembered; if it ever changes, Locarust refuses to connect.

FTPS on shared hosting often uses a certificate made for the server's own name; tick Accept a certificate issued for another name if the connection fails with a certificate error.

Changes and publish

The upload icon in the project row (or Changes and publish) compares the project with the server, using the state of the last sync:

Group States Ticked by default
Changed here · to publish New, Changed yes
Deleted here; delete on the server no
Changed on the server · to download New on the server, Changed on the server yes
Deleted on the server; delete here no
Both groups Changed on both sides, Different (never synced) no — tick it in the direction you want

Publish uploads the ticked files; Download fetches them. Nothing moves without a click.

Safety net

  • Before a file on the server is replaced, its current version is downloaded to backups\<project>_server_<time>\.
  • Before a local file is replaced by a download, it is copied to backups\<project>_local_<time>\.
  • The sync state is saved after every file, so an interrupted publish can simply be run again.

.locarustignore

Created in the project folder on first connect. One pattern per line: * wildcard, trailing / = folder, leading / = from the project root. By default it keeps local settings away from the server: .env, wp-config.php, configuration.php, LocalSettings.php, config.inc.php, editor folders, logs and framework caches. .git, node_modules and locarust.txt are always skipped.

A new project from a server

From a server (next to New project) asks for a project name and the connection, then downloads the whole site (settings files included, once) into www\<name>. Adjust its local settings (e.g. the database in wp-config.php) — they stay local thanks to .locarustignore.

Databases

Not synced. Export the database on one side and import it on the other (phpMyAdmin, Adminer, or mysqldump / mysql in the terminal).

Clone this wiki locally