You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -68,7 +66,7 @@ RUN if test -e modules/reana-commons; then \
68
66
fi
69
67
70
68
# A quick fix to allow eduGAIN and social login users that wouldn't otherwise match Invenio username rules
71
-
RUN sed -i 's|^username_regex = re.compile\(.*\)$|username_regex = re.compile("^\\S+$")|g' /usr/local/lib/python3.8/dist-packages/invenio_userprofiles/validators.py
69
+
RUN sed -i 's|^username_regex = re.compile\(.*\)$|username_regex = re.compile("^\\S+$")|g' /usr/local/lib/python3.12/dist-packages/invenio_userprofiles/validators.py
Create a minimal Flask app containing all of REANA's endpoints and the needed
30
+
Invenio modules. Use `invenio_app.factory.create_app` the create the full Invenio
31
+
app that is also used in production or when invoking `invenio run`.
32
+
33
+
This method is used to create the Flask app in the tests and in the
34
+
`generate_openapi_spec.py` script.
35
+
36
+
In general, this is how Flask apps are created:
37
+
- When running in debug mode, `invenio run ...` is invoked. This calls `invenio_app.factory.create_app`.
38
+
- When running in production mode, `uwsgi` is used, and the module configured is `invenio_app.wsgi:application`. This calls `invenio_app.factory.create_app`.
39
+
- When running `flask reana-admin` commands, flask auto-detects the app present in `app.py`, which is created with `invenio_app.factory.create_app`.
40
+
- When running the tests, `reana_server.factory.create_minimal_app` is called.
41
+
- When running `generate_openapi_spec.py`, the app is created with `reana_server.factory.create_minimal_app`.
0 commit comments