Wiki source code of Datenverzeichnisse von FORMCYCLE
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | {{content/}} | ||
| 2 | |||
| 3 | By default, all data and internal configuration files are saved to the default Tomcat directory or a temporary system directory. When you need to change the directory, for example to a different partition or hard drive, the following settings need to be modified. | ||
| 4 | |||
| 5 | == Creating or finding the configuration file == | ||
| 6 | |||
| 7 | You can change the settings in one of following three configuration files: | ||
| 8 | |||
| 9 | * {{code language="none"}}TOMCAT_DIRECTORY/webapps/FORMCYCLE_CONTEXT_NAME/WEB-INF/web.xml{{/code}}, eg. {{code language="none"}}/home/tomcat/apache-tomcat-8.5.11/webapps/formcycle-tc8/WEB-INF/web.xml{{/code}}. The relevant settings are already in this file and commented out. This configuration file is local to the {{formcycle/}} installation and is not modified when updating Tomcat. | ||
| 10 | * {{code language="none"}}TOMCAT_DIRECTORY/conf/Catalina/localhost/formcycle.xml{{/code}} Falls diese Datei noch nicht existiert, muss diese neu angelegt werden. | ||
| 11 | * {{code language="none"}}TOMCAT_DIRECTORY/conf/context.xml{{/code}} | ||
| 12 | |||
| 13 | In case you have already applied the modifications as described at [[Using {{formcycle/}} with the root domain>>doc:RootDomainAccess]], modify the file {{code language="none"}}ROOT.xml{{/code}} instead. | ||
| 14 | |||
| 15 | == Editing the configuration file == | ||
| 16 | |||
| 17 | Add two {{code language="none"}}Parameter{{/code}} entries to the context containing the path to the data and configuration directory to be used by {{formcycle/}}. | ||
| 18 | |||
| 19 | The configuration file might look like this: | ||
| 20 | |||
| 21 | {{code language="xml"}} | ||
| 22 | <Context> | ||
| 23 | <WatchedResource>WEB-INF/web.xml</WatchedResource> | ||
| 24 | <Parameter name="XFC_CONFIG_DIR" value="/home/fc/config" override="true"/> | ||
| 25 | <Parameter name="XFC_DATA_DIR" value="/home/fc/data" override="true"/> | ||
| 26 | </Context> | ||
| 27 | {{/code}} | ||
| 28 | |||
| 29 | * **XFC_CONFIG_DIR** | ||
| 30 | Directory containing the {{formcycle/}}'s configuration files, such as the [[application settings>>doc:Formcycle.SystemSettings.ConfigFiles.ApplicationProperties]] {{code language="none"}}application.properties{{/code}} , the [[logging settings>>doc:Formcycle.SystemSettings.UserInterface.Logging]] {{code language="none"}}logging.properties{{/code}} or the LDAP settings {{code language="none"}}ldapauth.properties{{/code}}. | ||
| 31 | * **XFC_DATA_DIR** | ||
| 32 | Directory containing temporary files such as [[uploaded files>>doc:Formcycle.UserInterface.MyForms.Files]] or files created by [[actions>>doc:Formcycle.Designer.Workflow.Actions.WebHome]] during workflow processing. |