mirror of https://github.com/zulip/zulip.git
96 lines
4.9 KiB
ReStructuredText
96 lines
4.9 KiB
ReStructuredText
===================
|
|
Directory structure
|
|
===================
|
|
|
|
.. attention::
|
|
``tools/build-enterprise-tarball`` needs a new name. (``build-server-tarball``?)
|
|
|
|
This page documents our directory structure and how to decide where to
|
|
put a file.
|
|
|
|
Scripts
|
|
=======
|
|
|
|
+--------------------+-----------------------------------------------------------------------------------+
|
|
| ``scripts/`` | Scripts that production deployments might run manually (e.g. ``restart-server``) |
|
|
+--------------------+-----------------------------------------------------------------------------------+
|
|
| ``bin/`` | Scripts that are needed on production deployments but humans should never run |
|
|
+--------------------+-----------------------------------------------------------------------------------+
|
|
| ``scripts/setup/`` | Tools that production deployments will only run once, during installation |
|
|
+--------------------+-----------------------------------------------------------------------------------+
|
|
| ``tools/`` | Development tools |
|
|
+--------------------+-----------------------------------------------------------------------------------+
|
|
|
|
Bots
|
|
====
|
|
|
|
+------------------------+----------------------------------------------------------------------+
|
|
| ``bots/`` | Not distributed, even to production deployment instances |
|
|
+------------------------+----------------------------------------------------------------------+
|
|
| ``api/integrations`` | Distributed in our API bundle |
|
|
+------------------------+----------------------------------------------------------------------+
|
|
|
|
Management commands
|
|
===================
|
|
|
|
+-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
|
|
| ``zerver/management/commands/`` | Management commands one might run at a production deployment site (e.g. scripts to change a value or deactivate a user properly) |
|
|
+-------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Views
|
|
=====
|
|
|
|
+--------------------------------+-----------------------------------------+
|
|
| ``zerver/tornadoviews.py`` | Tornado views |
|
|
+--------------------------------+-----------------------------------------+
|
|
| ``zerver/views/webhooks.py`` | Webhook views |
|
|
+--------------------------------+-----------------------------------------+
|
|
| ``zerver/views/messages.py`` | message-related views |
|
|
+--------------------------------+-----------------------------------------+
|
|
| ``zerver/views/__init__.py`` | other Django views |
|
|
+--------------------------------+-----------------------------------------+
|
|
|
|
Static assets
|
|
=============
|
|
|
|
+---------------+---------------------------------------------------------------------------------------------------------------+
|
|
| ``assets/`` | For assets not to be served to the web (e.g. the system to generate our favicons) |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------+
|
|
| ``static/`` | For things we do want to both serve to the web and distribute to production deployments (e.g. the webpages) |
|
|
+---------------+---------------------------------------------------------------------------------------------------------------+
|
|
|
|
Puppet
|
|
======
|
|
|
|
+--------------------+----------------------------------------------------------------------------------+
|
|
| ``puppet/zulip`` | For configuration for production deployments |
|
|
+--------------------+----------------------------------------------------------------------------------+
|
|
|
|
Templates
|
|
=========
|
|
|
|
+--------------------------+--------------------------------------------------------+
|
|
| ``templates/zerver`` | For templates related to zerver views |
|
|
+--------------------------+--------------------------------------------------------+
|
|
| ``static/templates`` | Handlebars templates for the frontend |
|
|
+--------------------------+--------------------------------------------------------+
|
|
|
|
Tests
|
|
=====
|
|
|
|
+--------------------+---------------------------------+
|
|
| ``zerver/tests`` | Frontend tests |
|
|
+--------------------+---------------------------------+
|
|
|
|
Documentation
|
|
=============
|
|
|
|
+-------------+-----------------------------------------------+
|
|
| ``docs/`` | Source for this documentation |
|
|
+-------------+-----------------------------------------------+
|
|
|
|
You can consult the code for ``tools/build-enterprise-tarball`` to
|
|
check exactly which components are deployed --
|
|
since that is the tool that does the builds, it controls the
|
|
distribution.
|