Development mode

Swarm has a development mode that, when enabled, changes Swarm's behavior in the following ways:

  • CSS and JavaScript code is not aggregated. Each CSS or JavaScript file is fetched individually, which makes it much easier to identify where styles or functions exist and how they apply to Swarm. Due to the additional HTTP requests, development mode should not be used in production environments.

  • Errors and exceptions that may occur are displayed in Swarm's UI. This is particularly useful to developers of Swarm modules. As the error information might disclose system paths or configuration, development mode should not be used in production environments.

To enable development mode

Adjust the SWARM_ROOT/data/config.php file to include:

<?php
    return array(
        'p4' => ...
        'environment'   => array(
            'mode'  => 'development'
        )
    );

To disable development mode

Adjust the SWARM_ROOT/data/config.php file to exclude the 'mode' => 'development' line.