Skip to content

Commit 48de77c

Browse files
committed
Improve troubleshooting section formatting and clarity
Address review feedback: - Format as numbered list for better readability - Add JSON code block for runtime.config.json content - Specify file location (project root alongside package.json) - Explain that app name is typically the repository name - Add example command showing --app parameter usage
1 parent f4222c1 commit 48de77c

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

content/copilot/tutorials/spark/deploy-from-cli.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,18 @@ The {% data variables.product.prodname_spark_short %} CLI currently only works w
6868

6969
## Troubleshooting
7070

71-
If you're being asked to supply the `--app` parameter when deploying your spark, update to the latest version of the {% data variables.product.prodname_spark_short %} SDK by following step 1 in [Build your spark](#build-your-spark). If that does not work, ensure you have a `runtime.config.json` file containing `{"app": "<your-app-name>"}` and you can then use `--app <your-app-name>` to deploy.
71+
If you're being asked to supply the `--app` parameter when deploying your spark, try the following steps:
72+
73+
1. Update to the latest version of the {% data variables.product.prodname_spark_short %} SDK by following step 1 in [Build your spark](#build-your-spark).
74+
1. If that does not work, create a `runtime.config.json` file in the root of your project (the same directory as your `package.json` file) with the following content:
75+
76+
```json copy
77+
{"app": "YOUR-APP-NAME"}
78+
```
79+
80+
Replace `YOUR-APP-NAME` with the name of your {% data variables.product.prodname_spark_short %} app, which is usually the same as your repository name.
81+
1. Alternatively, specify your app name directly by using the `--app` parameter when you deploy:
82+
83+
```bash copy
84+
gh runtime-cli deploy --dir ./dist --app YOUR-APP-NAME
85+
```

0 commit comments

Comments
 (0)