Skip to content

Commit 7c8bf1d

Browse files
authoredNov 28, 2024
[Doc] Dash - auto change in routing | note (#293)
* [Doc] Dash - auto change in routing | note * fix: formating * fix: formating * fix: typo
1 parent 091d22a commit 7c8bf1d

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed
 

‎doc/apps/dash.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ app = Dash(__name__)
3030
server = app.server
3131
```
3232

33+
```{note}
34+
- `server = app.server` - Required to start a production grade server. Without it, deployment will fail as the infrastructure cannot find the server to start.
35+
- `app = Dash(__name__)` - The deployment may require modification of the application's basic routing. If deployment fails, check the following log:
36+
37+
_ERROR: We were not able to modify your Routing automatically_
38+
39+
_INSTRUCTION: Please add `url_base_pathname="/application/"` to `app = Dash(__name__, ...)`_
40+
41+
This modification is automated, but you may see the notice above if it fails.
42+
```
43+
44+
3345
## Testing locally
3446

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

153-
::::
165+
::::

0 commit comments

Comments
 (0)