fix: service names with underscores (crm_app, crm_worker) + docker_compose_domains with crm_app
This commit is contained in:
+18
-2
@@ -1180,8 +1180,24 @@ def deploy_initial() -> int:
|
||||
steps.append(("Set envs", StepResult(False, str(e))))
|
||||
_print_result(steps[-1][1])
|
||||
|
||||
# Step 4: Deploy via /api/v1/deploy (Magic ENV SERVICE_FQDN_CRM_APP_8000 handles domain)
|
||||
print("\n[4/4] Deploying docker-compose stack...")
|
||||
# Step 4: Set domain via docker_compose_domains + Deploy
|
||||
print("\n[4/4] Setting domain and deploying...")
|
||||
if APP_DOMAIN:
|
||||
try:
|
||||
resp = httpx.patch(
|
||||
f"{client.base_url}/api/v1/applications/{app_uuid}",
|
||||
headers=client.headers,
|
||||
json={
|
||||
"docker_compose_domains": [
|
||||
{"name": "crm_app", "domain": f"{APP_DOMAIN}:443"}
|
||||
]
|
||||
},
|
||||
timeout=30,
|
||||
)
|
||||
print(f" Domain set: {APP_DOMAIN}:443 ({resp.status_code})")
|
||||
except Exception as e:
|
||||
print(f" Warning: could not set domain: {e}")
|
||||
|
||||
try:
|
||||
resp = httpx.post(
|
||||
f"{client.base_url}/api/v1/deploy",
|
||||
|
||||
Reference in New Issue
Block a user