Skip to content

Commit

Permalink
[Doc] Dash - auto change in routing | note
Browse files Browse the repository at this point in the history
  • Loading branch information
LatentDream committed Nov 28, 2024
1 parent 091d22a commit f44a3e4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/apps/dash.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ 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 might need to change the base routing of the application. If deployment fails, check for this 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 +161,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 f44a3e4

Please sign in to comment.