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:latest
VUE_APP_SERVER_URL
instead? https://github.com/PrefectHQ/ui/blob/d873d4408e11b3b660107f38c66f8541038cf68f/src/store/api/index.js#L16nicholas
emmanuel
08/11/2020, 2:40 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 updatedemmanuel
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 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 endpointemmanuel
08/11/2020, 2:50 PMnicholas