This command serves a web application that uses a PasteDeploy
configuration file for the server and application. If
start/stop/restart is given, then
daemon is implied, and it will start (normal operation), stop ( stop- daemon), or do both. You can also include variable
assignments like 'http_port=8080' and then use %(http_port)s in your
config files.
例如:
[server:main]
use = egg:waitress#main
host = 127.0.0.1
port = %(http_port)s
命令
pserve help
告诉我们:例如:
然后运行
pserve mydevapp.ini http_port=1234
相关问题 更多 >
编程相关推荐