Skip to content

6. Digital Experience File Sync settings

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

Login credentials, server information, theme location, and other options are customizable for each of your themes in Digital Experience File Sync.

The settings file is created when you run the dxsync init command. You can set the following parameters for each of your themes by using the dxsync init command.

  • Hostname - Defines the hostname of your server.
  • Username - Defines your user name.
  • Password - Defines your password.
  • Path to the content handler servlet - Defines the path to your content handler servlet. The default is /wps/mycontenthandler.
  • Secure connection - Defines whether Digital Experience File Sync connects to the server securely or unsecurely.
  • Port - Defines your port. The default for a secure connection is 10041. The default for an unsecure connection is 10039.
  • Theme - Defines the theme that you are synchronizing. Digital Experience File Sync provides a numbered list of available themes. Choose the number that corresponds to the theme that you want to synchronize.

You can set the following parameters in the .settings file.

  • syncIntervalMin - Defines how much time between background synchronizations in minutes. The default is 5. If you do not want background sync set the value to -1.
  • threads - Defines how many files are processed through the server simultaneously. The default is 10.
  • filterRegex - Defines which file types the program ignores. If your editor or file system adds files to your directory, for example .backup files, you can set the synchronization tool to ignore them during synchronization so they are not uploaded to the server. The default is ^\.|~$|.bak$|.resolve$|.delete$|.conflict$. This default ignores .bak, .resolve, .delete, and .conflict files.
  • forceWatch - Defines which directories are watched. The forceWatch setting is available only in Windows. Windows can watch only 64 directories. If you add a 65th directory, your changes are not synchronized in that directory. However, you can make sure that directory is watched by using the forceWatch parameter. For example, to watch the directories dir1 and dir2, add the following text in the brackets to create an array: ["dir1","dir2"].

Changing your Digital Experience File Sync settings

You can configure your login credentials, your server information, your theme location, and other options by changing your settings.

Procedure

  1. Open the .settings file in the folder you have synchronized with the server in a text editor. This file is hidden by default.
  2. Change your settings.
  3. Save your changes.