What to include in the repository
Ucommerce comes with a ton if different folders, which can be difficult to get an overview of at first. Which folders should be included, and which can you skip when sharing the repository with your colleagues.
This article is meant to help you understand the structure of Ucommerce, so you can make the decision what you want to include, and exclude in the repository.
Ucommerce lives in the folder which usually looks like this:
Everything in this folder should be included in the repository, as this is where Ucommerce stores everything like config files, aspx files and so on.
When installing Ucommerce, .dll files will be built in the
\bin folder. These .dlls will be recreated when building the project, if you installed Ucommerce through Nuget.
If you installed through Umbraco Package manager or Sitecore widget installer. You will have to include the
\bin folder in the repository.
Ucommerce also adds a folder in the
App_Data directory, that looks like this:
This folder is where Ucommerce stores the index. You can include or exclude this. Remember that if you exclude this from the repository, anyone who pull the repository will have to create the indexes from scratch through the UI before their front-end will work. You can read more about ScratchIndexer here
The last folder to mention is our
UcommerceAppsAssemblyShadowCopy this folder lives here:
AppsAssemblyShadowCopy contains a copy of all bin files from
Ucommerce\Apps\, this is to make sure the
\Ucommerce\Apps\ folder is not locked while the website is running.
This folder is created on an app recycle, so if it is not there, it will be recreated. This means you can exclude this folder just fine, and Ucommerce will automatically re-create it when you spin up the website.