Skip to content

Commit 0e7259f

Browse files
committed
pr suggestions applied
1 parent b1207f2 commit 0e7259f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

apps/deploy.mdx

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,28 @@ kernel deploy github \
4848
You can set environment variables for your app using the `--env` flag. For example:
4949

5050
<CodeGroup>
51-
```bash Typescript/Javascript
51+
```bash Typescript/Javascript (inline)
5252
kernel deploy my_app.ts --env MY_ENV_VAR=my_value # Can add multiple env vars delimited by space
5353
```
5454

55-
```bash Python
55+
```bash Typescript/Javascript (from file)
56+
kernel deploy my_app.ts --env-file .env
57+
```
58+
59+
```bash Python (inline)
5660
kernel deploy my_app.py --env MY_ENV_VAR=my_value # Can add multiple env vars delimited by space
5761
```
62+
63+
```bash Python (from file)
64+
kernel deploy my_app.py --env-file .env
65+
```
5866
</CodeGroup>
5967

6068
## Deployment notes
6169

6270
- **The dependency manifest (`package.json` for JS/TS, `pyproject.toml` for Python) must be present in the root directory of your project.**
6371
- View deployment logs using: `kernel deploy logs <deployment_id> --follow`
72+
- If you encounter a 500 error during deployment, verify that your entrypoint file name and extension are correct (e.g., `app.py` not `app` or `app.js`).
6473
- Kernel assumes the root directory contains at least this file structure:
6574

6675
<CodeGroup>

0 commit comments

Comments
 (0)