Skip to content

Commit 2f15dd3

Browse files
committed
Bug fix: Notify MATLAB of updated base url environment variable
1 parent 84061a7 commit 2f15dd3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

jupyter_matlab_proxy/matlab/startup.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
clear user_id first_name last_name email_address profile_id display_name token remember_me
2121
end
2222

23-
if (strlength(getenv('BASE_URL')) > 0)
24-
connector.internal.setConfig('contextRoot', getenv('BASE_URL'))
23+
if (strlength(getenv('MWI_BASE_URL')) > 0)
24+
connector.internal.setConfig('contextRoot', getenv('MWI_BASE_URL'))
2525
end
2626
connector.internal.Worker.start
2727

jupyter_matlab_proxy/mwi_environment_variables.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def get_env_name_base_url():
3030
3131
Note: The website runs on a URL of the form:
3232
www.<SERVER ADDRESS>:<PORT NUMBER>/<BASE_URL>/index.html
33+
34+
Note: If you are updating this value, remember to update the startup.m file
35+
that is used to notify the connector of the base url.
3336
"""
3437
return "MWI_BASE_URL"
3538

0 commit comments

Comments
 (0)