-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
3,958 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Dash | ||
|
||
To deploy a [Dash](https://dash.plotly.com/) application to Ploomber Cloud you need: | ||
|
||
- A `Dockerfile` | ||
- A Dash project | ||
|
||
## `Dockerfile` | ||
|
||
Use this [template](https://github.com/ploomber/doc/blob/main/examples/dash/simple-app/Dockerfile) `Dockerfile`: | ||
|
||
```Dockerfile | ||
FROM python:3.11 | ||
|
||
COPY app.py app.py | ||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
||
ENTRYPOINT ["gunicorn", "app:server", "run", "--bind", "0.0.0.0:80"] | ||
``` | ||
|
||
## Testing locally | ||
|
||
To test your app, you can use `docker` locally: | ||
|
||
```sh | ||
# build the docker image | ||
docker build . -t dash-app | ||
|
||
# run it | ||
docker run -p 5000:80 dash-app | ||
``` | ||
|
||
Now, open [http://0.0.0.0:5000/](http://0.0.0.0:5000/) to see your app. | ||
|
||
|
||
## Deploy | ||
|
||
Once you have all your files, create a zip file. | ||
|
||
To deploy a Dash app from the deployment menu, select the Docker option and follow the instructions: | ||
|
||
![](../static/docker.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Managing applications | ||
|
||
## Labels | ||
|
||
Labels can help you organize and identify your apps. You can add them during creation: | ||
|
||
![](../static/manage-apps/labels.png) | ||
|
||
Or add them from the application status page: | ||
|
||
![](../static/manage-apps/add-label-from-status.png) | ||
|
||
You may add as many labels as you want. Once you've added some labels, they will show up on the status page and the main Applications page: | ||
|
||
![](../static/manage-apps/see-labels-status.png) | ||
|
||
![](../static/manage-apps/see-labels-main.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:3.11 | ||
|
||
COPY . . | ||
RUN pip install -r requirements.txt | ||
|
||
ENTRYPOINT ["gunicorn", "app:server", "run", "--bind", "0.0.0.0:80"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# clinical analytics | ||
|
||
Based on [this example.](https://github.com/plotly/dash-sample-apps/tree/main/apps/dash-clinical-analytics) |
Oops, something went wrong.