Skip to content

Commit

Permalink
fix: remove "app/" from docs and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-rou committed Dec 9, 2024
1 parent 3cbf7b2 commit 8f686f5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 96 deletions.
2 changes: 1 addition & 1 deletion cerebrium/container-images/defining-container-images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Define a custom runtime by adding the `cerebrium.runtime.custom` section to the

```toml
[cerebrium.runtime.custom]
entrypoint = ["uvicorn", "app.main:server", "--host", "0.0.0.0", "--port", "8080"]
entrypoint = ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
port = 8080
healthcheck_endpoint = "" # Empty string uses TCP health check

Expand Down
92 changes: 0 additions & 92 deletions cerebrium/development/serve.mdx

This file was deleted.

4 changes: 2 additions & 2 deletions cerebrium/endpoints/websockets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Below is an example of the required changes in your `cerebrium.toml` configurati
```toml
[cerebrium.runtime.custom]
port = 5000
entrypoint = "uvicorn app.main:app --host 0.0.0.0 --port 5000"
entrypoint = "uvicorn main:app --host 0.0.0.0 --port 5000"
healthcheck_endpoint = "/health"
```

Explanation:

- port: The port your app will listen on inside the container.
- entrypoint: The command to start your app. In this example, we’re using Uvicorn to run a FastAPI app located in app/main.py.
- entrypoint: The command to start your app. In this example, we’re using Uvicorn to run a FastAPI app located in main.py.
- healthcheck_endpoint: The endpoint used by Cerebrium to verify that your app is running.

## Things to note
Expand Down
2 changes: 1 addition & 1 deletion v4/examples/asgi-gradio-interface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ include = ['./*', 'main.py', 'cerebrium.toml']
exclude = ['.*']

[cerebrium.runtime.custom]
entrypoint = ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8080"]
entrypoint = ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
port = 8080
healthcheck_endpoint = "/health"

Expand Down

0 comments on commit 8f686f5

Please sign in to comment.