gws.server.manager¶
Server manager, which creates the server configuration files and the start script.
Source code: gws.server.manager
Module Contents¶
- class gws.server.manager.Object¶
Bases:
gws.ServerManagerServer manager.
- configure()¶
Configuration hook.
Called when the node is initialized. Raising an exception here aborts the creation of the node.
- configure_environment()¶
Overwrite the log level and the numbers of workers from the environment.
- configure_templates()¶
Create the templates from the
templatesconfig and add the default templates.
- create_server_configs(target_dir, script_path, pid_paths)¶
Create the server configuration files and the start script.
- Parameters:
target_dir – Directory for the configuration files.
script_path – Path of the start script.
pid_paths – Paths of the pid files, keyed by server name (
web,spool,nginx).
- class gws.server.manager.TemplateArgs(*args, **kwargs)¶
Bases:
gws.TemplateArgsArguments for configuration templates.
- gwsEnv: dict¶
Environment variables whose names start with
GWS_.