rstudio / rsconnect

Publish Shiny Applications, RMarkdown Documents, Jupyter Notebooks, Plumber APIs, and more
http://rstudio.github.io/rsconnect/
131 stars 80 forks source link

posit.cloud + shinyapps publishing both list as api.shinyapps.io #905

Closed aronatkins closed 1 year ago

aronatkins commented 1 year ago
  1. Publish a Shiny application to posit.cloud.
  2. The IDE drop-down reports that content as api.shinyapps.io.
  3. Publish that same application to shinyapps.io.
  4. The IDE drop-down reports a second content item using api.shinyapps.io.
image

The publish dialog correctly shows the destination server. The drop-down is wrong; it gives no indication of the destination.

image image
hadley commented 1 year ago

What does accounts() and servers() return for you? Do we know how the IDE is generating this label?

aronatkins commented 1 year ago
> rsconnect::accounts()
               name                                 server
12       aronatkins                            posit.cloud
17       aronatkins                           shinyapps.io
> rsconnect::servers()[c(17,18), c("name","url")]
           name                         url
17 shinyapps.io https://api.shinyapps.io/v1
18  posit.cloud https://api.shinyapps.io/v1

I do not know how the IDE creates the label.

aronatkins commented 1 year ago

Note: This appears to be an issue with the CRAN release of rsconnect as well as the development version, likely rooted in the fact that both shinyapps.io and posit.cloud use the same API URL.