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 497 stars 48 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
90
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 | | A bare `.py` or `.R` — no framework import, no `ui.R`/`server.R`/`plumber.R`/`entrypoint.R` alongside | Script — a batch/E...

Details

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

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

deploy-to-railway

Use when deploying a project to Railway from scratch — provisioning a Postgres database, one or more app services (a full-stack monolith OR separate frontend/backend), an S3-compatible bucket, sharing credentials + env vars between services, wiring GitHub auto-deploy on merge to main, and adding auth (Google SSO or Cloudflare Zero Trust in front). Triggers on "deploy this to Railway", "get it live on Railway", "set up Railway with a database + auto deploy", "split front/back end services on Railway", "add an S3 bucket on Railway", "share env vars between Railway services". Carries the hard-won gotchas (NIXPACKS Node version, npm-version lockfile skew, RLS-safe DATABASE_URL, DB-role password rotation, GitHub App authorization) that turn a 6-hour debug into a 20-minute deploy.

1 Updated yesterday
jackneil
AI & Automation Listed

deploy

Deploy a managed project to production, executed strictly from that project's structured deploy playbook — confirm-gated, never improvised. Use when the user says "deploy", "deploy <project>", "ship <project> to prod", "run the deploy", or "push <project> live". Reads the project's context.md + the deploy playbook it points to (e.g. a repo README "Deploy" section), presents the full ordered plan, then runs it one step at a time, pausing before each production-mutating step.

1 Updated 4 days ago
phahadek
DevOps & Infrastructure Listed

deploy

Configure and run the LOCAL deploy — install the app on this machine or start its dev server — verifying it succeeds

1 Updated 2 days ago
AnotherSava