MCPcopy Create free account
hub / github.com/hunvreus/devpush / get_environment_hostname

Method get_environment_hostname

app/models.py:577–582  ·  view source on GitHub ↗

Get environment hostname

(self, environment_slug: str)

Source from the content-addressed store, hash-verified

575 return {alias.value: alias for alias in aliases}
576
577 def get_environment_hostname(self, environment_slug: str) -> str:
578 """Get environment hostname"""
579 settings = get_settings()
580 if environment_slug == "production":
581 return self.hostname
582 return f"{self.slug}-env-{environment_slug}.{settings.deploy_domain}"
583
584 def get_environment_url(self, environment_slug: str) -> str:
585 """Get environment URL"""

Callers 1

get_environment_urlMethod · 0.95

Calls 1

get_settingsFunction · 0.90

Tested by

no test coverage detected