zoukankan      html  css  js  c++  java
  • flask 命令行

    $ flask --help
    Usage: flask [OPTIONS] COMMAND [ARGS]...
    
      A general utility script for Flask applications.
    
      Provides commands from Flask, extensions, and the application. Loads the
      application defined in the FLASK_APP environment variable, or from a
      wsgi.py file. Setting the FLASK_ENV environment variable to 'development'
      will enable debug mode.
    
        $ export FLASK_APP=hello.py
        $ export FLASK_ENV=development
        $ flask run
    
    Options:
      --version  Show the flask version
      --help     Show this message and exit.
    
    Commands:
      routes  Show the routes for the app.
      run     Run a development server.
      shell   Run a shell in the app context.
    
    $  flask run --help
    Usage: flask run [OPTIONS]
    
      Run a local development server.
    
      This server is for development purposes only. It does not provide the
      stability, security, or performance of production WSGI servers.
    
      The reloader and debugger are enabled by default if FLASK_ENV=development
      or FLASK_DEBUG=1.
    
    Options:
      -h, --host TEXT                 The interface to bind to.
      -p, --port INTEGER              The port to bind to.
      --cert PATH                     Specify a certificate file to use HTTPS.
      --key FILE                      The key file to use when specifying a
                                      certificate.
    
      --reload / --no-reload          Enable or disable the reloader. By default
                                      the reloader is active if debug is enabled.
    
      --debugger / --no-debugger      Enable or disable the debugger. By default
                                      the debugger is active if debug is enabled.
    
      --eager-loading / --lazy-loader
                                      Enable or disable eager loading. By default
                                      eager loading is enabled if the reloader is
                                      disabled.
    
      --with-threads / --without-threads
                                      Enable or disable multithreading.
      --extra-files PATH              Extra files that trigger a reload on change.
                                      Multiple paths are separated by ':'.
    
      --help                          Show this message and exit.
    
  • 相关阅读:
    css 和 svg 实现蚂蚁行军效果
    ASP.NET Core使用Swagger实现接口文档并分组
    Centos7+DockerCompose部署ASP.NET Core3.1应用
    Centos7+Docker部署ASP.NET Core3.1应用
    ASP.NET Core下的Cache
    在asp.net web form项目中添加webapi接口
    windows服务中对外提供API接口
    ASP.NET Core使用log4net记录日志
    SSL踩坑ERR_SSL_VERSION_OR_CIPHER_MISMATCH
    C# 调用微信接口上传素材和发送图文消息
  • 原文地址:https://www.cnblogs.com/cag2050/p/12904079.html
Copyright © 2011-2022 走看看