Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Define reloader extra_files inflask run CLI #2897

Closed
Labels
Milestone
@rochacbruno

Description

@rochacbruno

Expected Behavior

I expected to haveFLASK_RUN_EXTRA_FILES to be processed in the same way ofFLASK_RUN_PORT andFLASK_RUN_HOST

When using the old styleapp.run we can define anextra_files to be watched for changes by the reloader, that is useful for example, if you have a static settings file likesettings.toml (usingdynaconf) or another kind of static config or themed templates loaded from other paths

Actual Behavior

In therun commandhttps://github.com/pallets/flask/blob/master/flask/cli.py#L775 the argumentextra_files is not being passed towekzeug.run_simplehttps://github.com/pallets/werkzeug/blob/master/werkzeug/serving.py#L738

Suggestion

AddFLASK_RUN_EXTRA_FILES="path1,path2,path" to flask run command.

or

Map all variables fromwerkzeug.run_simple -https://github.com/pallets/werkzeug/blob/master/werkzeug/serving.py#L738

In toFLASK_RUN_* prefixed env var orWERKZEUG_RUN_* prefixed env var.

Environment

  • Python version: 3.6
  • Flask version: 1.0.2
  • Werkzeug version: 0.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2026 Movatter.jp