Cert++
Close

Version directory layout for uploaded SFRA code

Key Takeaway

Upload all your SFRA cartridges (base, plugin and custom) and the modules folder side by side into the same version directory. The storefront runs only the active code version.

B2C Commerce stores uploaded code in version directories, which are top-level folders that each hold a full set of cartridges. You upload SFRA cartridges into one of these folders over WebDAV. The instance runs only the version marked active, so the folder you upload to decides whether your changes appear on the storefront.

Code versions and version directories

A code version is a folder that holds custom cartridges. Each code version's folder is a top-level folder called a version directory. One instance can hold several version directories at the same time, so you can build a new release while the storefront keeps running on a stable one.

When you name a version directory, follow these rules:

  • Name it after its version, for example v12 or summer_release.
  • Keep the name of the version directory that holds the cartridges to no more than 50 characters, so WebDAV access works.
  • Don't include a path such as my/new/version. B2C Commerce throws an error for that name to block directory traversal.
B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a sandbox environment, configure an IDE to use WebDAV to deploy cartridges to the correct version directories

0/6

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers. 796 members and growing.