File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,7 @@ def run(
35
35
implementation : BackendImplementation [Any ] | None = None ,
36
36
) -> None :
37
37
"""Run a component with a development server"""
38
- logger .warning (
39
- "You are running a development server. "
40
- "Change this before deploying in production!"
41
- )
38
+ logger .warning (_DEVELOPMENT_RUN_FUNC_WARNING )
42
39
43
40
implementation = implementation or import_module ("idom.backend.default" )
44
41
@@ -127,3 +124,11 @@ def all_implementations() -> Iterator[BackendImplementation[Any]]:
127
124
)
128
125
129
126
yield module
127
+
128
+
129
+ _DEVELOPMENT_RUN_FUNC_WARNING = f"""\
130
+ The `run()` function is only intended for testing during development! To run in \
131
+ production, consider selecting a supported backend and importing its associated \
132
+ `configure()` function from `idom.backend.<package>` where `<package>` is one of \
133
+ { list (SUPPORTED_PACKAGES )} . For details refer to the docs on how to run each package.\
134
+ """
You can’t perform that action at this time.
0 commit comments