Isolation mode: venv
We have code that run based on the value of a Environment Variable.
It create a page if the variable is a certain value
app_id = os.environ.get(“APP_ID”)
if app_id == ‘BW6’:
page_bw6 = Page(‘BW6 Page’, views=[‘get_web_view’])
When updating the variable on the app page (on Viktor platform), the change doesn’t reflect on the app.
As soon as the Environment Variable is updated, the app should take in concideration its new value.
The App behave as expected on the Development Workspace using the command:
viktor-cli start -e APP_ID=“BW6”
viktor-cli start -e APP_ID=“NA”