use 'AYON_WEBSERVER_URL' env variable

This commit is contained in:
Jakub Trllo 2024-02-06 18:30:58 +01:00
parent 7fd55e3bee
commit 6de168d042
4 changed files with 5 additions and 5 deletions

View file

@ -205,7 +205,7 @@ class TVPaintHost(HostBase, IWorkfileHost, ILoadHost, IPublishHost):
return
# Stop application timer.
webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL")
webserver_url = os.environ.get("AYON_WEBSERVER_URL")
rest_api_url = "{}/timers_manager/stop_timer".format(webserver_url)
requests.post(rest_api_url)

View file

@ -405,7 +405,7 @@ class TimersManager(
passed.
"""
webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL")
webserver_url = os.environ.get("AYON_WEBSERVER_URL")
if not webserver_url:
msg = "Couldn't find webserver url"
if logger is not None:
@ -440,7 +440,7 @@ class TimersManager(
logger (logging.Logger): Logger used for logging messages.
"""
webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL")
webserver_url = os.environ.get("AYON_WEBSERVER_URL")
if not webserver_url:
msg = "Couldn't find webserver url"
if logger is not None:

View file

@ -16,7 +16,7 @@ Running multiple servers in one process is not recommended and probably won't
work as expected. It is because of few limitations connected to asyncio module.
When module's `create_server_manager` is called it is also set environment
variable "OPENPYPE_WEBSERVER_URL". Which should lead to root access point
variable "AYON_WEBSERVER_URL". Which should lead to root access point
of server.
"""

View file

@ -86,7 +86,7 @@ class StdOutBroker:
if not self._std_available: # not content to log
return
ws = websocket.WebSocket()
webserver_url = os.environ.get("OPENPYPE_WEBSERVER_URL")
webserver_url = os.environ.get("AYON_WEBSERVER_URL")
if not webserver_url:
print("Unknown webserver url, cannot connect to pass log")