Update docker copy syntax & readme runtime API URL change (#2597)

This commit is contained in:
Krzysztof Żuraw 2022-11-17 14:51:58 +01:00 committed by GitHub
parent a3c011c9bf
commit f0918842e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 7 deletions

View file

@ -7,12 +7,12 @@ COPY nginx/ nginx/
COPY assets/ assets/ COPY assets/ assets/
COPY locale/ locale/ COPY locale/ locale/
COPY testUtils testUtils/ COPY testUtils testUtils/
COPY codegen.yml . COPY codegen.yml ./
COPY webpack.config.js . COPY webpack.config.js ./
COPY tsconfig.json . COPY tsconfig.json ./
COPY *.d.ts . COPY *.d.ts ./
COPY schema.graphql . COPY schema.graphql ./
COPY introspection.json . COPY introspection.json ./
COPY src/ src/ COPY src/ src/
ARG API_URI ARG API_URI

View file

@ -161,7 +161,13 @@ docker run --publish 8080:80 --env "API_URL=<YOUR_API_URL>" saleor-dashboard
Enter `http://localhost:8080/` to use dashboard. Enter `http://localhost:8080/` to use dashboard.
##### Usage with Sentry adapter: If you want to dynamically change `API_URL` in runtime you can use (assuming you have running container named `saleor-dashboard`):
```shell
docker exec -it -e API_URL=NEW_URL saleor-dashboard /docker-entrypoint.d/50-replace-api-url.sh
```
### Usage with Sentry adapter
Sentry is used as the default tracker so no changes in code are necessary and the configuration is done via environment variables. Sentry is used as the default tracker so no changes in code are necessary and the configuration is done via environment variables.