You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.
The readme says to edit the src/agent.js to change the API_ROOT to point to a different backend api instance. We want to set things up so that API_ROOT can be defined by an environment variable that is different for the multiple environments(e.g., “staging” and “live”) where we run the production build.
We are running in containers on openshift kubernetes following 12factor.net principles where the code is built once then promoted through environments. We can spin up new new environments with a single command so we don’t want to have a switch statement within the code that names each environment and hardcodes the backend API_ROOT for each environment. Instead I want to be able to run an existing production build container image in a fresh environment where I have change the API_ROOT to point to the correct backend API that has the data we want to test against.
The readme says to edit the
src/agent.js
to change theAPI_ROOT
to point to a different backend api instance. We want to set things up so thatAPI_ROOT
can be defined by an environment variable that is different for the multiple environments(e.g., “staging” and “live”) where we run the production build.We are running in containers on openshift kubernetes following 12factor.net principles where the code is built once then promoted through environments. We can spin up new new environments with a single command so we don’t want to have a switch statement within the code that names each environment and hardcodes the backend
API_ROOT
for each environment. Instead I want to be able to run an existing production build container image in a fresh environment where I have change theAPI_ROOT
to point to the correct backend API that has the data we want to test against.I have asked about the best way to do this on stackoverflow.com at https://stackoverflow.com/q/49975735/329496
The text was updated successfully, but these errors were encountered: