Coverage for gws-app/gws/server/__init__.py: 0%

1 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-04-17 01:37 +0200

1"""Configuration and management of embedded servers. 

2 

3GWS runs several servers in the container: WSGI backend servers (Web and Mapproxy), the Spool server for background jobs and the frontend NGINX proxy. 

4 

5This module provides configuration and control utilities for these facilities. It handles GWS startups and reloads. 

6 

7The GWS startup sequence is the following: 

8 

9- the main script ``bin/gws`` invokes the ``start`` command in :obj:`gws.server.cli` 

10- CLI delegates to :obj:`gws.server.control` 

11- control invokes the ``Application`` configuration in :obj:`gws.base.application.core.Object` 

12- the Application creates a ``ServerManager`` (:obj:`gws.server.manager.Object`) 

13- the Manager creates configuration files for embedded servers and a startup shell script to start them 

14- the control is returned to ``bin/gws``, which invokes the startup script 

15- the script starts the backends and finally NGINX, which keeps running in foreground 

16""" 

17 

18from .core import Config