-
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
Deploy via Git using rsconnect #888
Comments
Can you please explain what deploying via git means in this context? |
Deploying via git (as described in posit-dev/connectapi#196) means:
Because the content item is Git-backed, the deploy fetches code from the Git location and creates a bundle from those contents; the manifest and all code is expected to already be present in the Git location. They can perform this workflow using connectapi today, but would need to perform the The |
The current workflow is:
I'm curious whether this can be condensed to
Specifically, using
|
It seems like an ideal workflow would be to call |
You need to configure content to track a Git location only once. If that content is configured to poll, no additional deploy actions are needed. If the content does not poll, a deploy action will pull from the repository at the time of that request. @fh-mthomson - after the content has been created and configured, what is your "active development" workflow? |
Exactly!
Also, less common, if we need to update the
|
I think for now, the best course is:
You have filed posit-dev/connectapi#196 to set environment variables when creating that Git-backed item; that's a great suggestion. Even with that change, you will need a separate workflow using The |
Sounds reasonable for an interim approach! I'll look further into the existing env var functionality in Thank you @aronatkins @hadley for the great functionality (in both |
So maybe this function would be more like |
There is a pending improvement to Let's leave it in connectapi for now. Admittedly, this could have landed in either package. rsconnect it typically more opinionated "workflow", while connectapi is more direct API usage. Closing this issue assuming that the connectapi solution is sufficient, but we're willing to revisit if it's not appropriate. CC @mmarchetti |
While the Increasingly, we've preferred To be clear, (1) is not a critique against Expanding upon (3), I'd eventually love for users to be able to use click-button Publish via Git from Workbench. E.g., click Publish, specify a repo / branch, and, optionally, select local Env vars to upload securely with the bundle (rstudio/rstudio#13032), then click "deploy" for immediate interactive feedback (pinging the Connect API from Workbench). In contrast, programmatic deployment via Thanks again for the great packages and considering the options to move forward! |
FWIW I agree with the vision that most folks should only ever need to know about rsconnect, and since Git backed deployment is pretty common, it'd be nice to include a helper here. |
@aronatkins @hadley would you kindly be open to re-opening this issue? In the interim, I'm finding myself rewriting aspects of |
Currently, we're using the
connectapi
package, specificallydeploy_repo()
to initialize programmatic deployments to Connect.However, there is an increasing amount of active development in
rsconnect
that would motivate me to use only this package overconnectapi
for most interactions with the Connect API server.Would it be possible support deploying via Git via the
rsconnect::DeployApp()
function family? I'm envisioning:The text was updated successfully, but these errors were encountered: