Developer environment

 

Types of data in a typical Relatude project

For staging and source control you need a strategy for dealing with each of the following types of data:

1. Ontology

The Ontology (or datamodel) is stored internally in an xml file (content.definition) at the root of the site. The database always reflects the latest changes in the datamodel. When you edit the datamodel and saves the content.definition file and the site is started, Relatude automatically makes the changes and additions to the database. 

2. Code Files

With code files we refer to all the files you have added to the project solution manually or with Visual Studio, so basically all files stored in Git (or any other source control software). Typically this means all cshtml, html, cs, js, ts, css, and all jpg, png, gif for the templates files. 

 3. Edited content

Edited content is all content created and edited via the "/relatude" interface. This data is stored in two places, the database and the file system. (The files are located at WAF.Data/Content/Files). Make sure this folder is excluded from your source control. The files here are references to by the database, and you quickly break these references unless you also include the database in the source control software (which is very uncommon and not recommended).