main
Application entry-point helpers. Provides the Main class which parses command-line arguments, loads configuration, and starts the FastCGI server.
Configuration parameters
The following command-line options are supported:
| Option | Description |
|---|---|
--appdir PATH | Application root directory |
--bind ADDR | Address to bind (socket path or host:port) |
--debug | Enable debug mode |
--forks N | Number of worker processes to fork |
--help | Show help and exit |
Functions
smisk.util.main.run(application_class, *args, **kwargs)Convenience function: creates a
Maininstance and callsrun().
Classes
- class
smisk.util.main.Main -
Command-line application runner.
run()Parse arguments, load config, and start the server.
__call__()Alias for
run().