-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deploymentTarget doesn't work as intended with Posit Cloud #808
Comments
Is there any chance of using meaningful |
Yeah, our meaningful names are on a different entity that cloud calls |
For context, on Posit Cloud, applications are not a subtype of Content, but rather they are an entity that represents a servable resource with a unique URL. For example, Project is a subtype of Content and may have one or more applications associated with it (each accessible via its own URL). A Shiny application deployed to Posit Cloud is represented as another subtype of Content called an Output. An Output may also have one or more Application entities associated with depending on the nature of the output (static vs. dynamic). In both cases, unlike Posit Connect, an Application is not a subtype of Content. The bottom line is that the Posit Cloud domain model has diverged in some meaningful ways from shinyapps.io and Posit Connect. We might consider re-examining this tool's assumptions rather than attempting to align the domain models across all the products. We could also consider working to define a publishing contract/API that is abstracted enough to accommodate the differences between the products. Another solution might be to create a separate tool for publishing to Posit Cloud. |
When deploying a new application (or whenever there is no dcf file strongly identifying an existing deployment target), rsconnect attempts to identify an existing application on the server whose name suggests it might be the same as the application.
This does not work on posit cloud because:
connect
, which excludestatic
applications.The result is that we make a potentially expensive list api call to filter applications by name in memory with a virtual guarantee none are going to match. We should probably reimagine how this feature works for Posit Cloud, or skip the api call entirely.
The text was updated successfully, but these errors were encountered: