Fiz application deployment structure

When a Fiz application is deployed to Tomcat or some other application server, its deployment directory has the following contents:

static
  fiz
  ext
WEB-INF
  app
    config
    css
    ext
  ext
    ext1
      config
      css
    ext2
      config
      css
  fiz
    config
    css
  lib
  web.xml

There may be additional directories or files defined by individual applications or extensions. Overall, the directory structure conforms to the standards expected for Java servlets, with additional conventions defined by Fiz.

static

Contains static resources such as images and Javascript files that will be accessed via URLs when the application is deployed. For example, the URL http://www.mycompany.com/static/images/xyz.gif will map to the file web/static/images/xyz.gif. Application-specific resources can be placed in this directory and its children, except that the subdirectories fiz and ext are reserved for use by Fiz and extensions, respectively.

static/ext

Contains static resources provided by Fiz extensions. Each extension stores its static resources in a subdirectory named after the extension.

static/fiz

Contains static resources provided by Fiz.

WEB-INF

Contains files used internally by the application that are not directly accessible via URLs.

WEB-INF/app

Contains internal files defined by the application.

WEB-INF/app/config

Contains application-specific configuration datasets. Datasets in this directory can override or extend Fiz configuration datasets such as main.

WEB-INF/app/css

Contains application-specific CSS templates. Files in this directory can also be used to override Fiz CSS templates.

WEB-INF/app/ext

Files in this directory and its children can be used to override the configuration datasets and/or CSS templates for extensions. Not commonly used.

WEB-INF/ext

Contains internal files defined by extensions. Each extension occupies a subdirectory of WEB-INF/ext named after the extension, which typically contains config and/or css subdirectories.

WEB-INF/fiz

Contains internal files defined by Fiz.

WEB-INF/fiz/config

Contains configuration datasets defined by Fiz.

WEB-INF/fiz/css

Contains CSS templates defined by Fiz.

lib

Contains .jar files containing Java library packages used by the application, including the Fiz file fiz.jar.

WEB-INF/web.xml

The deployment descriptor for the application.