Skip to content

4. Synchronizing your theme files

Thomas Hurek edited this page Jan 15, 2020 · 1 revision

You can synchronize files with Digital Experience File Sync with three commands: dxsync run, dxsync pull, and dxsync push. To stop a sync that is in progress, enter Ctrl+C.

Synchronizing files automatically

The dxsync run command automatically synchronizes your workstation files with your server at intervals of time that you configure.

This command initiates a two-way synchronization between your workstation and your server. Digital Experience File Sync watches your files in the background and restarts a full synchronization at intervals of time that you configure.

To synchronize and edit your theme in real time, run the dxsync run command, which uploads your changes periodically. You must leave the command line session open so that Digital Experience File Sync can continue to watch for changes. If you close the command line session, your files automatically upload when you next run the dxsync run command.

Procedure

  1. After you initialize the theme, run the following command in the directory that you initialized:

    dxsync run

  2. Edit your theme in your local directory.

  3. When you are finished editing, close the command line session.

Pulling files from your server

This command initiates a one-time pull, or download, from the server to your workstation. Local changes are overwritten.

Procedure

After you initialize the theme, run the following command in the directory that you initialized:

 dxsync pull

Pushing files to your server

This command initiates a one-time push, or upload, to the server from your workstation. Remote changes are overwritten.

Procedure

After you initialize the theme, run the following command in the directory that you initialized:

 dxsync push