emmanuel
08/11/2020, 2:29 PMPREFECT_SERVER__GRAPHQL_URL the right env variable for the UI docker image? it seems to be the one used in the docker compose file but when ran outside of docker (so not on localhost), it doesn’t seem to be working 😕nicholas
emmanuel
08/11/2020, 2:31 PMprefecthq/ui:latestemmanuel
08/11/2020, 2:34 PMVUE_APP_SERVER_URL instead? https://github.com/PrefectHQ/ui/blob/d873d4408e11b3b660107f38c66f8541038cf68f/src/store/api/index.js#L16emmanuel
08/11/2020, 2:37 PMnicholas
emmanuel
08/11/2020, 2:40 PMemmanuel
08/11/2020, 2:41 PMemmanuel
08/11/2020, 2:41 PMnicholas
VUE_APP_SERVER_URL is the correct environment variable; the reason it's not updating the default in your UI is that the UI needs to be rebuilt when environment variables are updatednicholas
emmanuel
08/11/2020, 2:46 PMPREFECT_SERVER__GRAPHQL_URL: ${GRAPHQL_URL:-<http://localhost:4200/graphql>}
in
ui:
image: "prefecthq/ui:${PREFECT_UI_TAG:-latest}"
ports:
- "${UI_HOST_PORT:-8080}:8080"
command: "/intercept.sh"
environment:
PREFECT_SERVER__GRAPHQL_URL: ${GRAPHQL_URL:-<http://localhost:4200/graphql>}
networks:
- prefect-server
restart: "always"
depends_on:
- apollo
from prefect/cli/docker-compose.yml is meaningless for the moment?nicholas
emmanuel
08/11/2020, 2:47 PMnicholas
emmanuel
08/11/2020, 2:48 PMemmanuel
08/11/2020, 2:49 PMnicholas
VUE_APP_SERVER_URL in your .env file, you can run npm install and npm run build on the repo to rebuild the application with your new endpointnicholas
emmanuel
08/11/2020, 2:50 PMemmanuel
08/11/2020, 2:51 PMnicholas
nicholas