Skip to content

Commit

Permalink
watch incremental
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed Apr 29, 2024
1 parent e13af62 commit f74d990
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions doc/user-guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ add the `--watch` flag.
ploomber-cloud deploy --watch
```

You can also use the `--watch-incremental-logs` to view only the newly added logs with every polling.

```sh
ploomber-cloud deploy --watch-incremental-logs
```

## Configure an existing project

If you want to deploy an existing project run the `init` command with the `--from-existing` flag:
Expand Down
8 changes: 4 additions & 4 deletions doc/user-guide/github.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,19 @@ Then, click on the most recent run, and you'll see the logs:
In the logs, you will see updates on the progress of the deployment. You'll also see a URL to your application where you can check its status.
Once the deployment has succeeded, it will return a URL to view your deployed project.

If you would prefer to track progress only through the application, you can remove `--watch` from the `deploy` command in your `ploomber-cloud.yaml`:
If you would prefer to track progress only through the application, you can remove `--watch-incremental-logs` from the `deploy` command in your `ploomber-cloud.yaml`:

```yaml
- name: Deploy
env:
PLOOMBER_CLOUD_KEY: ${{ secrets.PLOOMBER_CLOUD_KEY }}
run: |
ploomber-cloud deploy # removed '--watch' here
ploomber-cloud deploy # removed '--watch-incremental-logs' here
```
Removing `--watch` means deployment updates won't be output to the logs, but you will still be able to track its progress through the URL.
Removing `--watch-incremental-logs` means deployment updates won't be output to the logs, but you will still be able to track its progress through the URL.

Without `--watch`, the logs will look like this:
Without `--watch-incremental-logs`, the logs will look like this:

![](../static/github/logs.png)

Expand Down

0 comments on commit f74d990

Please sign in to comment.