Skip to content

Commit

Permalink
Merge pull request #23 from deepset-ai/fix/add-cli-command-to-fetch-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
faymarie authored Dec 13, 2024
2 parents 57223dc + f3b2b97 commit bcf0561
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ In this method, you run commands to zip and push the repository to deepset Cloud
- On Windows: `hatch run dc:build-windows` and `hatch run dc:push-windows`
This creates a ZIP file called `custom_component.zip` in the `dist` directory and uploads it to deepset Cloud.

## 4. Debugging

To debug the installation of custom components in deepset Cloud, you can run:

- On Linux and macOS: `hatch run dc:logs`
- On Windows: `hatch run dc:logs-windows`



This will print the installation logs of the latest version of your custom components.
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ list = "curl --request GET --url https://api.cloud.deepset.ai/api/v2/custom_comp
build-windows = "powershell -Command \"& {{ if (-Not (Test-Path dist)) {{mkdir dist}}; if (Test-Path dist/custom_component.zip) {{ Remove-Item dist/custom_component.zip }}; Get-ChildItem -Path . | Where-Object {{ $_.FullName -notlike '*\\dist*' }} | Compress-Archive -DestinationPath dist/custom_component.zip -Update }}"
push-windows = "curl --request POST --url https://api.cloud.deepset.ai/api/v2/custom_components --header \"accept: application/json\" --header \"Authorization: Bearer %API_KEY%\" --form \"file=@dist/custom_component.zip;type=application/zip\""
list-windows = "curl --request GET --url https://api.cloud.deepset.ai/api/v2/custom_components --header \"accept: application/json\" --header \"Authorization: Bearer %API_KEY%\""
logs = "curl --request GET --url https://api.cloud.deepset.ai/api/v2/custom_components/logs --header 'accept: text/plain' --header \"Authorization: Bearer $API_KEY\""
logs-windows = "curl --request GET --url https://api.cloud.deepset.ai/api/v2/custom_components/logs --header \"accept: text/plain\" --header \"Authorization: Bearer %API_KEY%\""

[tool.hatch.envs.code-quality]
python = "3.11"
Expand Down

0 comments on commit bcf0561

Please sign in to comment.