minor fixes/cleanup
This commit is contained in:
parent
cb4aa7dfba
commit
7cdd6f24b8
@ -28,7 +28,8 @@ def validate_field_name(bases: List[Type["BaseModel"]], field_name: str) -> None
|
||||
"""
|
||||
from reflex.utils.exceptions import VarNameError
|
||||
|
||||
reload = os.getenv("RELOAD_CONFIG") == "True"
|
||||
# can't use reflex.config.environment here cause of circular import
|
||||
reload = os.getenv("RELOAD_CONFIG", "").lower() == "true"
|
||||
for base in bases:
|
||||
try:
|
||||
if not reload and getattr(base, field_name, None):
|
||||
|
@ -609,14 +609,14 @@ def publish(
|
||||
help="The API token to use for authentication on python package repository. If token is provided, no username/password should be provided at the same time",
|
||||
),
|
||||
username: Optional[str] = typer.Option(
|
||||
environment.TWINE_USERNAME.name,
|
||||
environment.TWINE_USERNAME,
|
||||
"-u",
|
||||
"--username",
|
||||
show_default="TWINE_USERNAME environment variable value if set",
|
||||
help="The username to use for authentication on python package repository. Username and password must both be provided.",
|
||||
),
|
||||
password: Optional[str] = typer.Option(
|
||||
environment.TWINE_PASSWORD.name,
|
||||
environment.TWINE_PASSWORD,
|
||||
"-p",
|
||||
"--password",
|
||||
show_default="TWINE_PASSWORD environment variable value if set",
|
||||
|
@ -963,7 +963,7 @@ class AppHarnessProd(AppHarness):
|
||||
try:
|
||||
return super()._poll_for_servers(timeout)
|
||||
finally:
|
||||
environment.REFLEX_SKIP_COMPILE.set(False)
|
||||
environment.REFLEX_SKIP_COMPILE.set(None)
|
||||
|
||||
def stop(self):
|
||||
"""Stop the frontend python webserver."""
|
||||
|
@ -370,7 +370,7 @@ def run_uvicorn_backend_prod(host, port, loglevel):
|
||||
run=True,
|
||||
show_logs=True,
|
||||
env={
|
||||
environment.REFLEX_SKIP_COMPILE.name: "yes"
|
||||
environment.REFLEX_SKIP_COMPILE.name: "true"
|
||||
}, # skip compile for prod backend
|
||||
)
|
||||
|
||||
@ -407,7 +407,7 @@ def run_granian_backend_prod(host, port, loglevel):
|
||||
run=True,
|
||||
show_logs=True,
|
||||
env={
|
||||
environment.REFLEX_SKIP_COMPILE.name: "yes"
|
||||
environment.REFLEX_SKIP_COMPILE.name: "true"
|
||||
}, # skip compile for prod backend
|
||||
)
|
||||
except ImportError:
|
||||
|
Loading…
Reference in New Issue
Block a user