S
smisk

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:

OptionDescription
--appdir PATHApplication root directory
--bind ADDRAddress to bind (socket path or host:port)
--debugEnable debug mode
--forks NNumber of worker processes to fork
--helpShow help and exit

Functions

smisk.util.main.run(application_class, *args, **kwargs)

Convenience function: creates a Main instance and calls run().

Classes

class smisk.util.main.Main

Command-line application runner.

run()

Parse arguments, load config, and start the server.

__call__()

Alias for run().