formatting
This commit is contained in:
parent
a9f068efed
commit
8084a6d140
@ -598,6 +598,7 @@ def deploy(
|
|||||||
loglevel=loglevel.subprocess_level(),
|
loglevel=loglevel.subprocess_level(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@cli.command()
|
@cli.command()
|
||||||
def deployv2(
|
def deployv2(
|
||||||
app_name: str = typer.Option(
|
app_name: str = typer.Option(
|
||||||
@ -656,11 +657,11 @@ def deployv2(
|
|||||||
):
|
):
|
||||||
"""Deploy the app to the Reflex hosting service."""
|
"""Deploy the app to the Reflex hosting service."""
|
||||||
from reflex_cli.v2 import cli as hosting_cli
|
from reflex_cli.v2 import cli as hosting_cli
|
||||||
|
|
||||||
from reflex.utils import prerequisites
|
|
||||||
from reflex.utils import export as export_utils
|
|
||||||
from reflex_cli.v2.utils import dependency
|
from reflex_cli.v2.utils import dependency
|
||||||
|
|
||||||
|
from reflex.utils import export as export_utils
|
||||||
|
from reflex.utils import prerequisites
|
||||||
|
|
||||||
# Set the log level.
|
# Set the log level.
|
||||||
console.set_log_level(loglevel)
|
console.set_log_level(loglevel)
|
||||||
|
|
||||||
@ -676,7 +677,12 @@ def deployv2(
|
|||||||
|
|
||||||
hosting_cli.deploy(
|
hosting_cli.deploy(
|
||||||
app_name=app_name,
|
app_name=app_name,
|
||||||
export_fn=lambda zip_dest_dir, api_url, deploy_url, frontend, backend, zipping: export_utils.export(
|
export_fn=lambda zip_dest_dir,
|
||||||
|
api_url,
|
||||||
|
deploy_url,
|
||||||
|
frontend,
|
||||||
|
backend,
|
||||||
|
zipping: export_utils.export(
|
||||||
zip_dest_dir=zip_dest_dir,
|
zip_dest_dir=zip_dest_dir,
|
||||||
api_url=api_url,
|
api_url=api_url,
|
||||||
deploy_url=deploy_url,
|
deploy_url=deploy_url,
|
||||||
@ -696,6 +702,7 @@ def deployv2(
|
|||||||
project=project,
|
project=project,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
cli.add_typer(db_cli, name="db", help="Subcommands for managing the database schema.")
|
cli.add_typer(db_cli, name="db", help="Subcommands for managing the database schema.")
|
||||||
cli.add_typer(script_cli, name="script", help="Subcommands running helper scripts.")
|
cli.add_typer(script_cli, name="script", help="Subcommands running helper scripts.")
|
||||||
cli.add_typer(
|
cli.add_typer(
|
||||||
|
Loading…
Reference in New Issue
Block a user