reflex-hosting-cli 0.1.47__tar.gz → 0.1.49__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/PKG-INFO +1 -1
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/pyproject.toml +1 -1
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/hosting.py +3 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/cli.py +4 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/.gitignore +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/LICENSE +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/README.md +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/__init__.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/cli.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/__init__.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/base.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/compiler.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/constants/hosting.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/core/__init__.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/core/config.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/deployments.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/__init__.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/console.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/dependency.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/utils/exceptions.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/__init__.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/apps.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/deployments.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/project.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/secrets.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/utils.py +0 -0
- {reflex_hosting_cli-0.1.47 → reflex_hosting_cli-0.1.49}/reflex_cli/v2/vmtypes_regions.py +0 -0
|
@@ -1228,6 +1228,7 @@ def create_deployment(
|
|
|
1228
1228
|
secrets: dict | None,
|
|
1229
1229
|
client: AuthenticatedClient,
|
|
1230
1230
|
packages: list | None,
|
|
1231
|
+
strategy: str | None,
|
|
1231
1232
|
) -> str:
|
|
1232
1233
|
"""Create a new deployment for an application.
|
|
1233
1234
|
|
|
@@ -1287,6 +1288,8 @@ def create_deployment(
|
|
|
1287
1288
|
payload["secrets"] = json.dumps(secrets)
|
|
1288
1289
|
if packages:
|
|
1289
1290
|
payload["packages"] = json.dumps(packages)
|
|
1291
|
+
if strategy:
|
|
1292
|
+
payload["deployment_strategy"] = strategy
|
|
1290
1293
|
|
|
1291
1294
|
response = httpx.post(
|
|
1292
1295
|
urljoin(constants.Hosting.HOSTING_SERVICE, "/v1/deployments"),
|
|
@@ -131,6 +131,7 @@ def deploy(
|
|
|
131
131
|
config = hosting.read_config(config_path)
|
|
132
132
|
|
|
133
133
|
packages = None
|
|
134
|
+
strategy = None
|
|
134
135
|
include_db = False
|
|
135
136
|
# If a cloud.yml file is provided, use values from the file that are not provided as arguments.
|
|
136
137
|
if config:
|
|
@@ -157,6 +158,8 @@ def deploy(
|
|
|
157
158
|
packages = config.get("packages", None)
|
|
158
159
|
if not include_db:
|
|
159
160
|
include_db = config.get("include_db", False)
|
|
161
|
+
if not strategy:
|
|
162
|
+
strategy = config.get("strategy", None)
|
|
160
163
|
app_name = config.get("name", app_name)
|
|
161
164
|
if not isinstance(app_name, (str, type(None))):
|
|
162
165
|
console.error(
|
|
@@ -363,6 +366,7 @@ def deploy(
|
|
|
363
366
|
secrets=processed_envs,
|
|
364
367
|
client=authenticated_client,
|
|
365
368
|
packages=packages,
|
|
369
|
+
strategy=strategy,
|
|
366
370
|
)
|
|
367
371
|
if "failed" in result:
|
|
368
372
|
console.error(result)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|