Scroll to navigation

PSERVE(1) User Commands PSERVE(1)

NAME

pserve - Python 2 Pyramid command

DESCRIPTION

usage: pserve [-h] [-n NAME] [-s SERVER_TYPE] [--server-name SECTION_NAME]

[--reload] [--reload-interval RELOAD_INTERVAL] [-b] [-v] [-q] [config_uri] [config_vars [config_vars ...]]

This command serves a web application that uses a PasteDeploy configuration file for the server and application.

You can also include variable assignments like 'http_port=8080' and then use %(http_port)s in your config files.

positional arguments:

The URI to the configuration file.
Variables required by the config file. For example, `http_port=%(http_port)s` would expect `http_port=8080` to be passed here.

optional arguments:

show this help message and exit
Load the named application (default main)
Use the named server.
Use the named server as defined in the configuration file (default: main)
Use auto-restart file monitor
Seconds between checking files (low number can cause significant CPU usage)
Open a web browser to the server url. The server url is determined from the 'open_url' setting in the 'pserve' section of the configuration file.
Set verbose level (default 1)
Suppress verbose output
February 2019 pserve 1.10.2+dfsg-2