Skip to content

Commit

Permalink
assets: change to ui to improve speed
Browse files Browse the repository at this point in the history
* to create the assets create_ui is enough. the assets only need the
  blueprints and they exists in create_ui. creat_ui only creates one
  app and not two as create_app does
  • Loading branch information
utnapischtim committed Jan 19, 2025
1 parent bc977c8 commit 45aba6a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions invenio_cli/commands/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ def update_statics_and_assets(
# processed by the python interpreter the following two packages are
# not yet installed.
from flask_collect import Collect
from invenio_app.factory import create_app
from invenio_app.factory import create_ui

# takes around 4 seconds
# the app is mainly used to set up the blueprints, therefore difficult to remove the creation
app = create_app()
app = create_ui()

app.config.setdefault(
"JAVASCRIPT_PACKAGES_MANAGER", self.cli_config.javascript_packages_manager
)
Expand Down

0 comments on commit 45aba6a

Please sign in to comment.