New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2897 - Add `extra_files` option to `flask run` CLI #2898

wants to merge 1 commit into
base: master


None yet
3 participants

rochacbruno commented Aug 31, 2018

Fix #2897

To define a list of files the reloader should watch additionally to the modules
as in extra_files argument used in the and werkzeug.serving.run_simple
you can either use the --extra-files (or multiple -f) option or define the
FLASK_RUN_EXTRA_FILES environment variable.

    # on windows use ``;`` instead of ``:`` to separate paths
    export FLASK_RUN_EXTRA_FILES=/path/to/file1:/path/to/file2
    flask run
     * Running on
     * Detected change in '/path/to/file1', reloading

On command line the same can be achieved with flask run -f /path/to/file1 -f /path/to/file2.


This comment has been minimized.


rochacbruno commented Aug 31, 2018

The travis error

Traceback (most recent call last):
  File "/home/travis/build/pallets/flask/.tox/docs-html/lib/python3.6/site-packages/sphinx/", line 161, in __init__
    execfile_(filename, config)
  File "/home/travis/build/pallets/flask/.tox/docs-html/lib/python3.6/site-packages/sphinx/util/", line 150, in execfile_
    exec_(code, _globals)
  File "", line 7, in <module>
    from pallets_sphinx_themes import DocVersion, ProjectLink, get_version
ImportError: cannot import name 'DocVersion'

ERROR: InvocationError for command '/home/travis/build/pallets/flask/.tox/docs-html/bin/sphinx-build -W -b html -d /home/travis/build/pallets/flask/.tox/docs-html/tmp/doctrees docs /home/travis/build/pallets/flask/.tox/docs-html/tmp/html' (exited with code 2)

Is also happening locally, all other envs of the tox matrix is passing except the docs. looks like recent changes to DocVersion location on pallets_sphinx_themes @davidism


This comment was marked as outdated.

ultimatecoder commented Sep 8, 2018

I am too getting "ImportError: cannot import name 'DocVersion'" at the time of generating the documentation.


This comment has been minimized.


onovy commented Sep 18, 2018

please rebase on master, DocVersion import is already fixed


This comment has been minimized.


rochacbruno commented Sep 18, 2018

@onovy done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment