Jelajahi Sumber

respect "env" from rxconfig (#1338)

Masen Furer 1 tahun lalu
induk
melakukan
3a07e990be
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      reflex/reflex.py

+ 1 - 1
reflex/reflex.py

@@ -66,7 +66,7 @@ def init(
 @cli.command()
 @cli.command()
 def run(
 def run(
     env: constants.Env = typer.Option(
     env: constants.Env = typer.Option(
-        constants.Env.DEV, help="The environment to run the app in."
+        get_config().env, help="The environment to run the app in."
     ),
     ),
     frontend: bool = typer.Option(
     frontend: bool = typer.Option(
         False, "--frontend-only", help="Execute only frontend."
         False, "--frontend-only", help="Execute only frontend."