chore: indicate watching extra files;
This commit is contained in:
parent
7d4a75fe60
commit
cd1d2821a4
1 changed files with 1 additions and 2 deletions
3
app.py
3
app.py
|
|
@ -5,7 +5,6 @@ from .threads import threads
|
||||||
from .cache import cache
|
from .cache import cache
|
||||||
|
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
app.config['TEMPLATES_AUTO_RELOAD'] = True
|
|
||||||
cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'})
|
cache.init_app(app, config={'CACHE_TYPE': 'SimpleCache'})
|
||||||
app.register_blueprint(threads, url_prefix='/')
|
app.register_blueprint(threads, url_prefix='/')
|
||||||
app.config.from_file("config.json", load=json.load)
|
app.config.from_file("config.json", load=json.load)
|
||||||
|
|
@ -16,7 +15,7 @@ filtered = filter(lambda file: not file.startswith('.'), template_files)
|
||||||
template_files = list(filtered)
|
template_files = list(filtered)
|
||||||
template_files = ['./templates/{0}'.format(file) for file in template_files]
|
template_files = ['./templates/{0}'.format(file) for file in template_files]
|
||||||
extra_files = ':'.join(template_files)
|
extra_files = ':'.join(template_files)
|
||||||
print(" * Watching: ")
|
print(" * Watching extra files: ")
|
||||||
for file in template_files:
|
for file in template_files:
|
||||||
print(f" - {file}")
|
print(f" - {file}")
|
||||||
os.environ['FLASK_RUN_EXTRA_FILES'] = extra_files
|
os.environ['FLASK_RUN_EXTRA_FILES'] = extra_files
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue