Update docker copy syntax & readme runtime API URL change (#2597)
This commit is contained in:
parent
a3c011c9bf
commit
f0918842e6
2 changed files with 13 additions and 7 deletions
12
Dockerfile
12
Dockerfile
|
@ -7,12 +7,12 @@ COPY nginx/ nginx/
|
|||
COPY assets/ assets/
|
||||
COPY locale/ locale/
|
||||
COPY testUtils testUtils/
|
||||
COPY codegen.yml .
|
||||
COPY webpack.config.js .
|
||||
COPY tsconfig.json .
|
||||
COPY *.d.ts .
|
||||
COPY schema.graphql .
|
||||
COPY introspection.json .
|
||||
COPY codegen.yml ./
|
||||
COPY webpack.config.js ./
|
||||
COPY tsconfig.json ./
|
||||
COPY *.d.ts ./
|
||||
COPY schema.graphql ./
|
||||
COPY introspection.json ./
|
||||
COPY src/ src/
|
||||
|
||||
ARG API_URI
|
||||
|
|
|
@ -161,7 +161,13 @@ docker run --publish 8080:80 --env "API_URL=<YOUR_API_URL>" saleor-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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue