deploy-to-connect

Featured

Deploy or publish Python and R content to a Posit Connect server using rsconnect-python or the R rsconnect package. Handles interactive apps and dashboards, web APIs, rendered documents, and prepared bundles/manifests. Use whenever the user asks to deploy, publish, or redeploy content to Posit Connect, or mentions rsconnect. Consult this skill instead of guessing flags or commands.

DevOps & Infrastructure 474 stars 42 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

<!-- Maintainer note: edit this skill in posit-dev/connect only. Downstream copies are overwritten by the sync workflow. --> # Deploying to Posit Connect This guide covers Python and R content on a Posit Connect server. Work through the stages in order. Two toolchains do the work: - Python — [rsconnect-python](https://github.com/posit-dev/rsconnect-python), which provides the `rsconnect` CLI and is published on PyPI. - R — the R [`rsconnect`](https://rstudio.github.io/rsconnect/) package, pointed at a Connect server. If the user asks a question ("how do I…", "what is the command…") rather than asking for a deploy, answer from this guide and stop. At the end, report which server you deployed to, which content type you picked, any tool you installed, and any assumption you made. --- ## Stage 1 — Detect the content Infer the language and framework from the files in the project directory. Common signals: | Signal in project dir | Likely content | | --- | --- | | `app.py` | Python web app — Shiny for Python, Streamlit, Dash, Gradio, Panel, or Bokeh | | `app.R`, or `ui.R` + `server.R` | Shiny for R | | `plumber.R` / `entrypoint.R` containing `plumb()` | Plumber API (R) | | `*.qmd` | Quarto document | | `*.Rmd` | R Markdown | | `*.ipynb` | Jupyter notebook / Voila | | `manifest.json` | Prebuilt bundle — deploy it directly, no framework guess needed | The imports in `app.py` name the framework: ```console grep -Eo 'import (shiny|streamlit|dash|gradio|panel|bokeh)|from (sh...

Details

Author
posit-dev
Repository
posit-dev/skills
Created
9 months ago
Last Updated
3 days ago
Language
R
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category