You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/deploy.mdx
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ Once you deploy an app on Kernel, you can schedule its actions on a job or run t
13
13
14
14
Use our CLI from the root directory of your project:
15
15
```bash
16
-
# entrypoint_file_name should be where you've defined your Kernel app
17
16
kernel deploy <entrypoint_file_name>
18
17
```
19
18
@@ -40,8 +39,8 @@ kernel deploy github \
40
39
```
41
40
42
41
#### Notes
43
-
44
-
- The CLI automatically downloads and extracts the GitHub source, prunes large dependency folders (like `node_modules`), and uploads your app for deployment.
42
+
-**`--path` vs `--entrypoint`:** Use `--path` to specify a subdirectory within the repo (useful for monorepos), and `--entrypoint` for the path to your app's entry file relative to that directory (or repo root if no `--path` is specified).
43
+
- The CLI automatically downloads and extracts the GitHub source code and uploads your app for deployment.
45
44
- For private repositories, provide a `--github-token` or set the `GITHUB_TOKEN` environment variable.
46
45
47
46
## Environment variables
@@ -60,15 +59,15 @@ kernel deploy my_app.py --env MY_ENV_VAR=my_value # Can add multiple env vars de
60
59
61
60
## Deployment notes
62
61
63
-
-**The entrypoint file and dependency manifest (`package.json` for JS/TS, `pyproject.toml` for Python) must both be in the root directory of your project.**
62
+
-**The dependency manifest (`package.json` for JS/TS, `pyproject.toml` for Python) must be present in the root directory of your project.**
0 commit comments