mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
use 'AYON_WEBSERVER_URL' env variable
This commit is contained in:
parent
7fd55e3bee
commit
6de168d042
4 changed files with 5 additions and 5 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue