inveniosoftware / inveniosoftware/cookiecutter-invenio-instance

scripts: use "invenio run --extra-files" to reload on "invenio.cfg" changes

Open
#208 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
6
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Apparently, `flask run` has [a `--extra-files` parameter](https://flask.palletsprojects.com/en/1.1.x/cli/#watch-extra-files-with-the-reloader), which allows passing other files that could trigger a reload when changed. That would be very useful e.g. for reloading for changes done in `invenio.cfg`.

Not sure if this could actually be useful/applicable for the entire `var/instance` folder...

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the script or entry point that handles `invenio run`, and read how it invokes the Flask development server. Verify how `invenio.cfg` and possibly `var/instance` are passed as extra files, then run the development command and confirm that configuration edits trigger a reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
cli, tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.