Skip to content

Need a flag to stop web browser opening a new tab after successful deployment to shinyapps.io #462

Closed

Description

@karangattu

One of the use cases we are trying to solve for CI deployments to shinyapps.io is to not have the default web browser tab being open on every successful deployment due to this line in the code.

If we can have an alternative/flag that allows the user to not have a browser tab being opened after successful deployments.
something along the lines of
-o, --open_browser [yes|no] If the web browser tab should be automatically opened after deployment yes (default) or no)

so the usage would look like

rsconnect deploy shiny app_file_path --name server_nickname --open_browser no 

Activity

  1. aronatkins commented on Aug 16, 2023

    @aronatkins
    Collaborator

    This is essentially the same as #296. CC @mslynch

  2. tdstein commented on Nov 10, 2026

    @tdstein
    Collaborator

    🤖 This is resolved. Since 1.31.0 (#828), every rsconnect deploy subcommand accepts --quiet, and for shinyapps.io deploys --quiet also skips opening a browser (rsconnect/api.py, the if not logger.quiet check before webbrowser.open_new). For CI, use rsconnect deploy shiny ... --quiet. It prints only the deployed URL, which you can capture with URL=$(...). If you still see a browser open with --quiet, please reopen with your version and command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions