Zotonic is a set of regular OTP applications. These can be found in the repository’s apps/ directory:
zotonic/ _build _checkouts apps/ zotonic_core/ zotonic_mod_acl_user_groups/ zotonic_mod... zotonic_site_status zotonic_site_testsandbox ... apps/user mysite ... bin/ doc/ docker/ priv/ log/ sites/ skel/ ssl/
The main directory contains the startup script “start.sh” and the makefile “Makefile” to build the system.
The Rebar3 build directory.
Place here checkouts of dependencies that are in development and should be used instead of the dependencies in
rebar.lockor as mentioned in the
rebar.configfiles of all other apps.
Documentation sources files.
The main zotonic include files.
All core modules of Zotonic. See the modules documentation for more information.
The priv directory is the place where all non core files are placed.
Here all the http access logs are written.
The Erlang source for the core Zotonic system.
Currently there are two behaviours defined. One for scomps and one for models.
The database drivers. Currently, only PostgreSQL is supported as DBMS. As the modules and models sometimes use database specific queries (especially for full text search) it will not be easy to substitute an alternative database. Read this article why Zotonic only supports PostgreSQL.
The database model and basic installation for sites. The files here are used when an empty database is found and needs to be installed.
The data model access files. Implements internal APIs for the different data models for use in Erlang modules and templates. Examples of datamodels are m_rsc, m_config and m_category.
All base Zotonic source code. Here you will find the source code for site supervisors, module supervisors, image resize server, context routines, and much more.
Contains the EUnit tests for Zotonic.
The Zotonic status site.
The Zotonic testsandbox site that tests are run against.
This directory contains user-modifiable source code which runs in Zotonic, namely user-defined sites, modules and other Erlang/OTP applications.
apps_userdirectory is the default location of the
ZOTONIC_APPSenvironment variable. See Useful environment variables.