Skip to content

Commit

Permalink
[Doc] Dash - auto change in routing | note (#293)
Browse files Browse the repository at this point in the history
* [Doc] Dash - auto change in routing | note

* fix: formating

* fix: formating

* fix: typo
  • Loading branch information
LatentDream authored Nov 28, 2024
1 parent 091d22a commit 7c8bf1d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion doc/apps/dash.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ app = Dash(__name__)
server = app.server
```

```{note}
- `server = app.server` - Required to start a production grade server. Without it, deployment will fail as the infrastructure cannot find the server to start.
- `app = Dash(__name__)` - The deployment may require modification of the application's basic routing. If deployment fails, check the following log:
_ERROR: We were not able to modify your Routing automatically_
_INSTRUCTION: Please add `url_base_pathname="/application/"` to `app = Dash(__name__, ...)`_
This modification is automated, but you may see the notice above if it fails.
```


## Testing locally

To test the Dash application, you can run the following commands locally:
Expand Down Expand Up @@ -150,4 +162,4 @@ By default applications run with Python 3.11. Refer to this [section](../faq/faq
[Live demo](https://delicate-cake-9107.ploomberapp.io)
:::

::::
::::

0 comments on commit 7c8bf1d

Please sign in to comment.