-
Notifications
You must be signed in to change notification settings - Fork 1
4. Synchronizing your theme files
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.
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.
-
After you initialize the theme, run the following command in the directory that you initialized:
dxsync run
-
Edit your theme in your local directory.
-
When you are finished editing, close the command line session.
This command initiates a one-time pull, or download, from the server to your workstation. Local changes are overwritten.
After you initialize the theme, run the following command in the directory that you initialized:
dxsync pull
This command initiates a one-time push, or upload, to the server from your workstation. Remote changes are overwritten.
After you initialize the theme, run the following command in the directory that you initialized:
dxsync push