Update to Render
Snapshot Oct 24, 2026 · 12:46 UTC · version 1.0.2
Collection source: downloaded plugin package. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.
Payment or plan references changed
Skill instructions — Now says: using the user's supplied inventory or local project files, then optionally enrich missing details with live Heroku data via MCP. 1. **App inventory**...
Observed in published text. Live prices and checkout terms have not been verified by this change.
Up to 10 plugins free · no card required.
All fields and original values.
Skill instructions
Sep 30, 2026 · 22:43 UTC
by reading local project files first, then optionally enriching with live Heroku data via MCP. 1. **Local project files** (required) — confirm the current directory contains a Heroku app (look for `Procfile`, `app.json`, `package.json`, ...
Oct 24, 2026 · 12:46 UTC
using the user's supplied inventory or local project files, then optionally enrich missing details with live Heroku data via MCP. 1. **App inventory** (required) — use complete details supplied by the user, or inspect local project files...
Supporting files
Sep 30, 2026 · 22:43 UTC
[{"relative_path":"references/blueprint-example.md","size_in_bytes":6971},{"relative_path":"references/buildpack-mapping.md","size_in_bytes":6242},{"relative_path":"references/data-migration.md","size_in_bytes":8539},{"relative_path":"re...
Oct 24, 2026 · 12:46 UTC
[{"relative_path":"references/blueprint-example.md","size_in_bytes":7002},{"relative_path":"references/blueprints.md","size_in_bytes":2850},{"relative_path":"references/buildpack-mapping.md","size_in_bytes":6408},{"relative_path":"refere...
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -11,21 +11,31 @@ # Heroku to Render Migration -Migrate from Heroku to Render by reading local project files first, then optionally enriching with live Heroku data via MCP. +Migrate from Heroku to Render using the user's supplied inventory or local project files, then optionally enrich missing details with live Heroku data via MCP. ## Prerequisites Check Before starting, verify what's available: -1. **Local project files** (required) — confirm the current directory contains a Heroku app (look for `Procfile`, `app.json`, `package.json`, `requirements.txt`, `Gemfile`, `go.mod`, or similar) +1. **App inventory** (required) — use complete details supplied by the user, or inspect local project files such as `Procfile`, `app.json`, `package.json`, `requirements.txt`, `Gemfile`, or `go.mod` 2. **Render MCP** (recommended) — check if `list_services` tool is available. Required for MCP Direct Creation (Step 3B) and automated verification (Step 6). Not required for the Blueprint path — the Render CLI and Dashboard handle generation, validation, and deployment. 3. **Heroku MCP** (optional) — check if `list_apps` tool is available -If Render MCP is missing and the user needs it, guide them through setup using the [MCP setup guide](references/mcp-setup.md). If Heroku MCP is missing, note that config var values and add-on plan details will need to be provided manually. +Do not require local files or MCP when the user has already supplied enough information for the requested plan, Blueprint, or migration instructions. If Render MCP is missing and the user actually needs live Render access, use the Render access workflow in [references/render-access.md](references/render-access.md); the [MCP setup guide](references/mcp-setup.md) adds Heroku-specific setup. If Heroku MCP is missing, use supplied values or ask only for missing config-var names and add-on details. ## Migration Workflow -Execute steps in order. Present findings to the user and get confirmation before creating any resources. +For an end-to-end migration, execute the applicable steps in order. Present findings to the user and get confirmation before creating any resources. + +Before mapping Heroku process types to Render service types, read [references/service-types.md](references/service-types.md). + +### Choose the narrow workflow + +- **Complete inventory + Blueprint request:** read `references/service-mapping.md`, `references/blueprint-example.md`, and `references/blueprints.md`; generate the complete Blueprint directly. Do not call live tools merely to rediscover values the user supplied. +- **Single-service migration:** gather the missing inventory, present the plan, and use MCP Direct Creation only after the user asks to create the service and confirms the plan. +- **Data-migration question:** read `references/service-mapping.md` and `references/data-migration.md`; provide the applicable procedure without performing live operations unless requested. + +Use the exact Heroku plan row in `references/service-mapping.md`, including its mapped Render plan and disk allocation. These migration mappings intentionally use legacy Render plan names where appropriate; do not substitute a remembered current Plan ID. ### Step 1: Inventory Heroku App @@ -91,7 +101,7 @@ release: [command] → Append to build command Add-ons: Heroku Postgres ([plan-slug], [disk-size]) → Render Postgres ([mapped-plan], diskSizeGB: [size]) - Heroku Redis ([plan-slug]) → Render Key Value ([mapped-plan]) + Heroku Key-Value Store ([plan-slug]) → Render Key Value ([mapped-plan]) Config vars: 14 total (list names, not values) ``` @@ -105,7 +115,7 @@ - Git remote exists and is HTTPS format - Database size (large DBs need assisted migration) -Look up each Heroku dyno size and add-on plan in the [service mapping](references/service-mapping.md) to determine correct Render plans and cost estimates. Present the migration plan table from the [pre-flight checklist](references/preflight-checklist.md) and wait for user confirmation before creating any resources. +Look up each Heroku dyno size and add-on plan in the [service mapping](references/service-mapping.md) to determine the correct Render plans. Present the migration plan table from the [pre-flight checklist](references/preflight-checklist.md), flag resources that incur charges, direct the user to [Render pricing](https://render.com/pricing) for current details, and wait for confirmation before creating anything. ### Determine Creation Method @@ -128,11 +138,11 @@ ### Step 3A: Generate Blueprint (Multi-Service) -This step has three mandatory sub-steps. Complete all three in order. +This path has three stages. Always complete authoring; perform local validation and provide the apply flow when those actions are in scope. #### 3A-i. Write render.yaml -Generate a `render.yaml` file and write it to the repo root. See the [Blueprint example](references/blueprint-example.md) for a complete example, the [Blueprint docs](https://render.com/docs/blueprint-spec#projects-and-environments) for usage guidance, and the [Blueprint YAML JSON schema](https://render.com/schema/render.yaml.json) for the full field reference. +Generate a complete `render.yaml`. Write it to the repository root when operating in the user's repository; otherwise present the complete file in the response. Before authoring it, read the current specification-fetch, validation, repository-sync, and safety workflow in [references/blueprints.md](references/blueprints.md). Then use the [Blueprint example](references/blueprint-example.md) for the migration-specific structure. **IMPORTANT: Always use the `projects`/`environments` pattern.** The YAML must start with a `projects:` key — never use flat top-level `services:` or `databases:` keys. This groups all migrated resources into a single Render project. @@ -148,13 +158,13 @@ #### 3A-ii. Validate the Blueprint -This step is mandatory. First, check if the Render CLI is installed: +When a `render.yaml` file has been written locally, validate it before presenting it as ready to deploy. First, check if the Render CLI is installed: ```bash render --version ``` -If not installed, offer to install it: +If not installed, offer to install it when deployment-ready local validation is in scope: - macOS: `brew install render` - Linux/macOS: `curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh` @@ -165,11 +175,11 @@ render blueprints validate render.yaml ``` -If validation fails, fix the errors in the YAML and re-validate. Repeat until validation passes. **Do not proceed to the next step until the Blueprint validates successfully.** +If validation fails, fix the errors in the YAML and re-validate. Repeat until validation passes. When the user requested only an example or no local file exists, provide the validation command without attempting installation or claiming that validation ran. #### 3A-iii. Provide the deploy URL -After validation passes: +When the user wants to apply the Blueprint, after validation passes: 1. Instruct user to commit and push: `git add render.yaml && git commit -m "Add Render migration Blueprint" && git push` 2. Get the repo URL by running `git remote get-url origin`. If the URL is SSH format (e.g., `git@github.com:user/repo.git`), convert it to HTTPS (`https://github.com/user/repo`). Then construct the deeplink: `https://dashboard.render.com/blueprint/new?repo=<HTTPS_REPO_URL>` @@ -179,13 +189,7 @@ ### Step 3B: MCP Direct Creation (Single-Service) -Before creating resources via MCP, verify the active workspace: - -``` -get_selected_workspace() -``` - -If the workspace is wrong, list available workspaces with `list_workspaces()` and ask the user to select the correct one. Resources will be created in whichever workspace is active. +Before creating resources via MCP, follow [references/render-access.md](references/render-access.md) and verify that the active workspace is the one the user intends. For single-service migrations without databases, create via MCP tools: @@ -202,6 +206,8 @@ ### Step 4: Migrate Environment Variables +Before inspecting or applying configuration, read [references/environment-variables.md](references/environment-variables.md) and preserve the migration-specific filtering and confirmation steps below. + #### Gather config vars Use the first available source: @@ -224,16 +230,16 @@ **Blueprint path (Step 3A):** Env vars are already embedded in the `render.yaml` on each service (non-secret values inline, secrets marked `sync: false` for the user to fill in during Blueprint apply). No separate MCP call is needed — skip to Step 5. -**MCP path (Step 3B):** Call Render `update_environment_variables` with confirmed vars (supports bulk set, merges by default). +**MCP path (Step 3B):** Inspect the current `update_environment_variables` operation, confirm whether it patches or replaces the collection, and apply only the confirmed variables while preserving unrelated keys. ### Step 5: Data Migration -Follow the [data migration guide](references/data-migration.md) to migrate Postgres and Redis data. The guide covers sub-steps 5a through 5e in detail. Summary of the flow: +Follow the [data migration guide](references/data-migration.md) to migrate Postgres and Key Value data. The guide covers sub-steps 5a through 5e in detail. Summary of the flow: 1. **Pre-migration checks** — confirm Render resources are provisioned via `list_postgres_instances()` and `list_key_value()`, check source DB size, verify Render CLI (`render --version`), `pg_dump`, and `pg_restore` are installed 2. **Gather connection strings** — Heroku Postgres via `pg_credentials` (MCP) or user CLI paste. For Key Value, construct a Dashboard deeplink from the ID. 3. **Postgres migration** — two approaches based on size: **under 2 GB** uses `render psql` (no Render connection string needed); **2-50 GB** uses `pg_dump -Fc` + `pg_restore` with external connection string from Dashboard (faster, compressed, parallel restore). -4. **Key Value / Redis** — usually skip (ephemeral cache). If persistent data, use `redis-cli` dump/restore with Dashboard-provided Render URL. +4. **Key Value** — usually skip (ephemeral cache). If persistent data, use `redis-cli` dump/restore with Dashboard-provided Render URL. 5. **Data validation** — verify schema and row counts via `query_render_postgres`, compare against Heroku source if MCP is available. ### Step 6: Verify Migration @@ -298,7 +304,7 @@ If the migration fails at any point: - **Services created but not working**: Services can be deleted from the Render dashboard (MCP server intentionally does not support deletion). Heroku app is untouched until maintenance mode is enabled. -- **Env vars wrong**: Call `update_environment_variables` with `replace: true` to overwrite, or fix individual vars. +- **Env vars wrong**: Follow [references/environment-variables.md](references/environment-variables.md), inspect the current update operation's patch-or-replace behavior, and correct only the intended keys. - **Database migration failed**: Render Postgres can be deleted and recreated. Heroku database is read-only during dump (no data loss). If `maintenance_off` is called on Heroku, the original app is fully operational again. - **DNS already changed**: Revert CNAME to Heroku and disable maintenance mode on Heroku. @@ -310,3 +316,16 @@ - Env var migration partially fails: show which succeeded/failed - Heroku auth errors: instruct `heroku login` or check `HEROKU_API_KEY` - Render auth errors: check Render API key in MCP config + +<!-- shared:documentation-retrieval --> +## Current documentation retrieval + +Whenever this skill directs you to consult current Render documentation: + +1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as `curl`. Do not substitute web-search summaries for the document. +2. Confirm that retrieval succeeded and returned the expected document, then read its contents. Saving a file or printing its path is not sufficient. +3. If the request fails or your tool cannot read the Markdown response, open and read the linked HTML version instead. +4. If neither version can be retrieved, disclose that the current reference is unavailable and follow any topic-specific fallback in the skill. Use bundled guidance only for stable constraints, and do not guess at changeable platform details. + +When a task requires multiple references, apply this workflow to each one and distinguish the documents you verified from those that remain unavailable. +<!-- /shared:documentation-retrieval -->
Full technical diff · 2 changed fields
changed /included_files
[
{
"relative_path": "references/blueprint-example.md",
"size_in_bytes": 6971
},
{
"relative_path": "references/buildpack-mapping.md",
"size_in_bytes": 6242
},
{
"relative_path": "references/data-migration.md",
"size_in_bytes": 8539
},
{
"relative_path": "references/mcp-setup.md",
"size_in_bytes": 4046
},
{
"relative_path": "references/preflight-checklist.md",
"size_in_bytes": 3584
},
{
"relative_path": "references/service-mapping.md",
"size_in_bytes": 10823
}
][
{
"relative_path": "references/blueprint-example.md",
"size_in_bytes": 7002
},
{
"relative_path": "references/blueprints.md",
"size_in_bytes": 2850
},
{
"relative_path": "references/buildpack-mapping.md",
"size_in_bytes": 6408
},
{
"relative_path": "references/data-migration.md",
"size_in_bytes": 9010
},
{
"relative_path": "references/environment-variables.md",
"size_in_bytes": 4653
},
{
"relative_path": "references/mcp-setup.md",
"size_in_bytes": 1746
},
{
"relative_path": "references/preflight-checklist.md",
"size_in_bytes": 3682
},
{
"relative_path": "references/render-access.md",
"size_in_bytes": 4830
},
{
"relative_path": "references/service-mapping.md",
"size_in_bytes": 9730
},
{
"relative_path": "references/service-types.md",
"size_in_bytes": 4703
}
]changed /skill_md_contents
"---\nname: render-migrate-from-heroku\ndescription: \"Migrate from Heroku to Render by reading local project files and generating equivalent Render services. Triggers: any mention of migrating from Heroku, moving off Heroku, Heroku to Render migration, or switching from Heroku. Reads Procfile, dependency files, and app config from the local repo. Optionally uses Heroku MCP to enrich with live config vars, add-on details, and dyno sizes. Uses Render MCP or Blueprint YAML to create services.\"\nlicense: MIT\ncompatibility: Render MCP server recommended for direct creation and automated verification; not required for the Blueprint path. Heroku MCP server is optional (enhances config var and add-on discovery).\nmetadata:\n author: Render\n version: \"1.5.0\"\n category: migration\n---\n\n# Heroku to Render Migration\n\nMigrate from Heroku to Render by reading local project files first, then optionally enriching with live Heroku data via MCP.\n\n## Prerequisites Check\n\nBefore starting, verify what's available:\n\n1. **Local project files** (required) — confirm the current directory contains a Heroku app (look for `Procfile`, `app.json`, `package.json`, `requirements.txt`, `Gemfile`, `go.mod`, or similar)\n2. **Render MCP** (recommended) — check if `list_services` tool is available. Required for MCP Direct Creation (Step 3B) and automated verification (Step 6). Not required for the Blueprint path — the Render CLI and Dashboard handle generation, validation, and deployment.\n3. **Heroku MCP** (optional) — check if `list_apps` tool is available\n\nIf Render MCP is missing and the user needs it, guide them through setup using the [MCP setup guide](references/mcp-setup.md). If Heroku MCP is missing, note that config var values and add-on plan details will need to be provided manually.\n\n## Migration Workflow\n\nExecute steps in order. Present findings to the user and get confirmation before creating any resources.\n\n### Step 1: Inventory Heroku App\n\nGather app details from local files first, then supplement with Heroku MCP if available.\n\n#### 1a. Read local project files (always)\n\nRead these files from the repo to determine runtime, commands, and dependencies:\n\n| File | What it tells you |\n| ------------------------------------------------- | ---------------------------------------------------------------------- |\n| `Procfile` | Process types and start commands (`web`, `worker`, `clock`, `release`) |\n| `package.json` | Node.js runtime, build scripts, framework deps (Next.js, React, etc.) |\n| `requirements.txt` / `Pipfile` / `pyproject.toml` | Python runtime, dependencies (Django, Flask, etc.) |\n| `Gemfile` | Ruby runtime, dependencies (Rails, Sidekiq, etc.) |\n| `go.mod` | Go runtime |\n| `Cargo.toml` | Rust runtime |\n| `app.json` | Declared add-ons, env var descriptions, buildpacks |\n| `runtime.txt` | Pinned runtime version |\n| `static.json` | Static site indicator |\n| `yarn.lock` / `pnpm-lock.yaml` | Package manager (affects build command) |\n\nFrom these files, determine:\n\n- **Runtime** — from dependency files (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Runtime version** — from `runtime.txt`, `.node-version`, or `engines` in `package.json`. If pinned, carry it over as an env var (e.g., `PYTHON_VERSION`, `NODE_VERSION`). If not pinned, do not specify a version — never assume or state what Render's default version is.\n- **Build command** — from package manager and framework (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Start commands** — from `Procfile` entries\n- **Process types** — from `Procfile` (web, worker, clock, release)\n- **Add-ons needed** — from `app.json` `addons` field, or infer from dependency files (e.g., `pg` in `package.json` suggests Postgres, `redis` suggests Key Value)\n- **Static site?** — from `static.json`, SPA framework deps, or static buildpack in `app.json`\n\n#### 1b. Enrich with Heroku MCP (if available)\n\nIf the Heroku MCP server is connected, call these tools to fill in details that aren't in the repo. The **dyno size** and **add-on plan slug** are critical — they determine which Render plans to use.\n\n1. `list_apps` — let user select which app to migrate (confirms app name)\n2. `get_app_info` — capture: region, stack, buildpacks, **config var names**\n3. `list_addons` — capture the **exact add-on plan slug** (e.g., `heroku-postgresql:essential-2`, `heroku-redis:premium-0`). The part after the colon maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n4. `ps_list` — capture the **exact dyno size** for each process type (e.g., `Standard-2X`, `Performance-M`). Each dyno size maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n5. `pg_info` (if Postgres exists) — capture **Data Size** (actual usage) and the plan's disk allocation. The plan's disk size determines the `diskSizeGB` value in the Blueprint (see the [service mapping](references/service-mapping.md)).\n\nIf Heroku MCP is **not** available, ask the user to provide:\n\n- Dyno sizes (or run `heroku ps:type -a <app>` and paste output)\n- Add-on plans (or run `heroku addons -a <app>` and paste output)\n- Database info (or run `heroku pg:info -a <app>` and paste output — captures plan name, data size, and disk allocation)\n- App region (`us` or `eu`)\n- Config var names (or run `heroku config -a <app> --shell` and paste output)\n\nIf the user cannot provide dyno sizes or add-on plans, use the fallback defaults from the [service mapping](references/service-mapping.md): `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\n#### Present summary\n\n```\nApp: [name] | Region: [region] | Runtime: [node/python/ruby/etc]\nSource: [local files | local files + Heroku MCP]\nBuild command: [inferred from buildpack/deps]\nProcesses:\n web: [command from Procfile] → Render web service ([mapped-plan])\n worker: [command] → Render background worker ([mapped-plan], Blueprint only)\n clock: [command] → Render cron job ([mapped-plan])\n release: [command] → Append to build command\nAdd-ons:\n Heroku Postgres ([plan-slug], [disk-size]) → Render Postgres ([mapped-plan], diskSizeGB: [size])\n Heroku Redis ([plan-slug]) → Render Key Value ([mapped-plan])\nConfig vars: 14 total (list names, not values)\n```\n\n### Step 2: Pre-Flight Check\n\nBefore creating anything, run through the [pre-flight checklist](references/preflight-checklist.md) to validate the migration plan. Key checks:\n\n- Runtime supported (or needs Dockerfile)\n- Worker dynos, release phase, static site detection\n- Third-party add-ons without Render equivalents\n- Git remote exists and is HTTPS format\n- Database size (large DBs need assisted migration)\n\nLook up each Heroku dyno size and add-on plan in the [service mapping](references/service-mapping.md) to determine correct Render plans and cost estimates. Present the migration plan table from the [pre-flight checklist](references/preflight-checklist.md) and wait for user confirmation before creating any resources.\n\n### Determine Creation Method\n\nAfter the user approves the pre-flight plan, apply this decision rule. **Default to Blueprint** — only use MCP Direct Creation when every condition below is met.\n\n**Use Blueprint** (the default) when ANY are true:\n\n- Multiple process types (web + worker, web + cron, etc.)\n- Databases or Key Value stores needed\n- Background workers in the Procfile\n- User prefers Infrastructure-as-Code configuration\n\n**Fall back to MCP Direct Creation** ONLY when ALL are true:\n\n- Single web or static site service (one process type)\n- No background workers or cron jobs\n- No databases or Key Value stores\n\nIf unsure, use Blueprint. Most Heroku apps have at least a database, so Blueprint applies to the vast majority of migrations.\n\n### Step 3A: Generate Blueprint (Multi-Service)\n\nThis step has three mandatory sub-steps. Complete all three in order.\n\n#### 3A-i. Write render.yaml\n\nGenerate a `render.yaml` file and write it to the repo root. See the [Blueprint example](references/blueprint-example.md) for a complete example, the [Blueprint docs](https://render.com/docs/blueprint-spec#projects-and-environments) for usage guidance, and the [Blueprint YAML JSON schema](https://render.com/schema/render.yaml.json) for the full field reference.\n\n**IMPORTANT: Always use the `projects`/`environments` pattern.** The YAML must start with a `projects:` key — never use flat top-level `services:` or `databases:` keys. This groups all migrated resources into a single Render project.\n\n**Set the `plan:` field for each service and database using the mapped Render plan from the [service mapping](references/service-mapping.md).** Look up the Heroku dyno size (from `ps_list`) and add-on plan slug (from `list_addons`) to find the correct Render plan. If the Heroku plan is unknown, use the fallback defaults: `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\nGenerate the YAML following the full template, rules, and patterns in the [Blueprint example](references/blueprint-example.md). Critical rules:\n\n- Always use the `projects:`/`environments:` pattern — never flat top-level `services:`\n- Set every `plan:` field using the [service mapping](references/service-mapping.md)\n- Set `diskSizeGB` on databases from the Heroku disk allocation\n- Use `fromDatabase` for `DATABASE_URL` and `fromService` for `REDIS_URL` — never hardcode connection strings\n- Mark secrets with `sync: false`\n\n#### 3A-ii. Validate the Blueprint\n\nThis step is mandatory. First, check if the Render CLI is installed:\n\n```bash\nrender --version\n```\n\nIf not installed, offer to install it:\n\n- macOS: `brew install render`\n- Linux/macOS: `curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh`\n\nOnce the CLI is available, run the validation command and show the output to the user:\n\n```bash\nrender blueprints validate render.yaml\n```\n\nIf validation fails, fix the errors in the YAML and re-validate. Repeat until validation passes. **Do not proceed to the next step until the Blueprint validates successfully.**\n\n#### 3A-iii. Provide the deploy URL\n\nAfter validation passes:\n\n1. Instruct user to commit and push: `git add render.yaml && git commit -m \"Add Render migration Blueprint\" && git push`\n2. Get the repo URL by running `git remote get-url origin`. If the URL is SSH format (e.g., `git@github.com:user/repo.git`), convert it to HTTPS (`https://github.com/user/repo`). Then construct the deeplink: `https://dashboard.render.com/blueprint/new?repo=<HTTPS_REPO_URL>`\n3. Present the **actual working deeplink** to the user — never show a placeholder URL. Guide user to open it, fill in `sync: false` secrets, and click **Apply**\n\n**Do not skip the deploy URL.** The user needs this link to apply the Blueprint on Render.\n\n### Step 3B: MCP Direct Creation (Single-Service)\n\nBefore creating resources via MCP, verify the active workspace:\n\n```\nget_selected_workspace()\n```\n\nIf the workspace is wrong, list available workspaces with `list_workspaces()` and ask the user to select the correct one. Resources will be created in whichever workspace is active.\n\nFor single-service migrations without databases, create via MCP tools:\n\n1. **Web service** — `create_web_service` with:\n - `runtime`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `buildCommand`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `startCommand`: from Procfile `web:` entry\n - `repo`: user-provided GitHub/GitLab URL\n - `region`: mapped from Heroku region\n - `plan`: mapped from Heroku dyno size using the [service mapping](references/service-mapping.md) (fallback: `starter`)\n2. **Static site** — `create_static_site` if detected (instead of web service)\n\nPresent the creation result (service URL, ID) when complete.\n\n### Step 4: Migrate Environment Variables\n\n#### Gather config vars\n\nUse the first available source:\n\n1. **Heroku MCP** (preferred) — config vars from `get_app_info` results (Step 1b)\n2. **User-provided** — ask the user to paste output of `heroku config -a <app> --shell`\n3. **`app.json`** — var names and descriptions (no values, but useful for `sync: false` entries)\n\n#### Filter and categorize\n\nRemove auto-generated and Heroku-specific vars (see the full filter list in the [service mapping](references/service-mapping.md)):\n\n- `DATABASE_URL`, `REDIS_URL`, `REDIS_TLS_URL` (Render generates these)\n- `HEROKU_*` vars (e.g., `HEROKU_APP_NAME`, `HEROKU_SLUG_COMMIT`)\n- Add-on connection strings (`PAPERTRAIL_*`, `SENDGRID_*`, etc.)\n\nPresent filtered list to user — **do not write without confirmation**.\n\n#### Apply vars\n\n**Blueprint path (Step 3A):** Env vars are already embedded in the `render.yaml` on each service (non-secret values inline, secrets marked `sync: false` for the user to fill in during Blueprint apply). No separate MCP call is needed — skip to Step 5.\n\n**MCP path (Step 3B):** Call Render `update_environment_variables` with confirmed vars (supports bulk set, merges by default).\n\n### Step 5: Data Migration\n\nFollow the [data migration guide](references/data-migration.md) to migrate Postgres and Redis data. The guide covers sub-steps 5a through 5e in detail. Summary of the flow:\n\n1. **Pre-migration checks** — confirm Render resources are provisioned via `list_postgres_instances()` and `list_key_value()`, check source DB size, verify Render CLI (`render --version`), `pg_dump`, and `pg_restore` are installed\n2. **Gather connection strings** — Heroku Postgres via `pg_credentials` (MCP) or user CLI paste. For Key Value, construct a Dashboard deeplink from the ID.\n3. **Postgres migration** — two approaches based on size: **under 2 GB** uses `render psql` (no Render connection string needed); **2-50 GB** uses `pg_dump -Fc` + `pg_restore` with external connection string from Dashboard (faster, compressed, parallel restore).\n4. **Key Value / Redis** — usually skip (ephemeral cache). If persistent data, use `redis-cli` dump/restore with Dashboard-provided Render URL.\n5. **Data validation** — verify schema and row counts via `query_render_postgres`, compare against Heroku source if MCP is available.\n\n### Step 6: Verify Migration\n\nAfter user confirms database migration is complete, run through each check in order. Stop at the first failure, fix it, and redeploy before continuing.\n\n#### 1. Confirm deploy status\n\n```\nlist_deploys(serviceId: \"<service-id>\", limit: 1)\n```\n\nExpect `status: \"live\"`. If status is `failed`, inspect build and runtime logs immediately.\n\n#### 2. Verify service health\n\nHit the health endpoint (or `/`) and confirm a 200 response. If there is no health endpoint, verify the app binds to `0.0.0.0:$PORT` (not `localhost`).\n\n#### 3. Scan error logs\n\n```\nlist_logs(resource: [\"<service-id>\"], level: [\"error\"], limit: 50)\n```\n\nLook for clear failure signatures: missing env vars, connection refused, module not found, port binding errors.\n\n#### 4. Verify env vars and port binding\n\nConfirm all required env vars are set — especially secrets marked `sync: false` during Blueprint apply. Ensure the app binds to `0.0.0.0:$PORT`.\n\n#### 5. Check resource metrics\n\n```\nget_metrics(\n resourceId: \"<service-id>\",\n metricTypes: [\"http_request_count\", \"cpu_usage\", \"memory_usage\"]\n)\n```\n\nVerify CPU and memory are within expected ranges for the selected plan.\n\n#### 6. Confirm database connectivity\n\n```\nquery_render_postgres(postgresId: \"<postgres-id>\", sql: \"SELECT count(*) FROM <key_table>\")\n```\n\nRun a read-only query on a key table to confirm data was restored correctly. Compare row counts against the Heroku source if possible.\n\nPresent a health summary after all checks pass.\n\n### Step 7: DNS Cutover (Manual)\n\nInstruct user to:\n\n1. Add CNAME pointing domain to `[service-name].onrender.com`\n2. Remove/update old Heroku DNS entries\n3. Wait for propagation\n\n## Rollback Plan\n\nIf the migration fails at any point:\n\n- **Services created but not working**: Services can be deleted from the Render dashboard (MCP server intentionally does not support deletion). Heroku app is untouched until maintenance mode is enabled.\n- **Env vars wrong**: Call `update_environment_variables` with `replace: true` to overwrite, or fix individual vars.\n- **Database migration failed**: Render Postgres can be deleted and recreated. Heroku database is read-only during dump (no data loss). If `maintenance_off` is called on Heroku, the original app is fully operational again.\n- **DNS already changed**: Revert CNAME to Heroku and disable maintenance mode on Heroku.\n\nKey principle: **Heroku stays fully functional until the user explicitly cuts over DNS.** The migration is additive until that final step.\n\n## Error Handling\n\n- Service creation fails: show error, suggest fixes (invalid plan, bad repo URL)\n- Env var migration partially fails: show which succeeded/failed\n- Heroku auth errors: instruct `heroku login` or check `HEROKU_API_KEY`\n- Render auth errors: check Render API key in MCP config\n"
"---\nname: render-migrate-from-heroku\ndescription: \"Migrate from Heroku to Render by reading local project files and generating equivalent Render services. Triggers: any mention of migrating from Heroku, moving off Heroku, Heroku to Render migration, or switching from Heroku. Reads Procfile, dependency files, and app config from the local repo. Optionally uses Heroku MCP to enrich with live config vars, add-on details, and dyno sizes. Uses Render MCP or Blueprint YAML to create services.\"\nlicense: MIT\ncompatibility: Render MCP server recommended for direct creation and automated verification; not required for the Blueprint path. Heroku MCP server is optional (enhances config var and add-on discovery).\nmetadata:\n author: Render\n version: \"1.5.0\"\n category: migration\n---\n\n# Heroku to Render Migration\n\nMigrate from Heroku to Render using the user's supplied inventory or local project files, then optionally enrich missing details with live Heroku data via MCP.\n\n## Prerequisites Check\n\nBefore starting, verify what's available:\n\n1. **App inventory** (required) — use complete details supplied by the user, or inspect local project files such as `Procfile`, `app.json`, `package.json`, `requirements.txt`, `Gemfile`, or `go.mod`\n2. **Render MCP** (recommended) — check if `list_services` tool is available. Required for MCP Direct Creation (Step 3B) and automated verification (Step 6). Not required for the Blueprint path — the Render CLI and Dashboard handle generation, validation, and deployment.\n3. **Heroku MCP** (optional) — check if `list_apps` tool is available\n\nDo not require local files or MCP when the user has already supplied enough information for the requested plan, Blueprint, or migration instructions. If Render MCP is missing and the user actually needs live Render access, use the Render access workflow in [references/render-access.md](references/render-access.md); the [MCP setup guide](references/mcp-setup.md) adds Heroku-specific setup. If Heroku MCP is missing, use supplied values or ask only for missing config-var names and add-on details.\n\n## Migration Workflow\n\nFor an end-to-end migration, execute the applicable steps in order. Present findings to the user and get confirmation before creating any resources.\n\nBefore mapping Heroku process types to Render service types, read [references/service-types.md](references/service-types.md).\n\n### Choose the narrow workflow\n\n- **Complete inventory + Blueprint request:** read `references/service-mapping.md`, `references/blueprint-example.md`, and `references/blueprints.md`; generate the complete Blueprint directly. Do not call live tools merely to rediscover values the user supplied.\n- **Single-service migration:** gather the missing inventory, present the plan, and use MCP Direct Creation only after the user asks to create the service and confirms the plan.\n- **Data-migration question:** read `references/service-mapping.md` and `references/data-migration.md`; provide the applicable procedure without performing live operations unless requested.\n\nUse the exact Heroku plan row in `references/service-mapping.md`, including its mapped Render plan and disk allocation. These migration mappings intentionally use legacy Render plan names where appropriate; do not substitute a remembered current Plan ID.\n\n### Step 1: Inventory Heroku App\n\nGather app details from local files first, then supplement with Heroku MCP if available.\n\n#### 1a. Read local project files (always)\n\nRead these files from the repo to determine runtime, commands, and dependencies:\n\n| File | What it tells you |\n| ------------------------------------------------- | ---------------------------------------------------------------------- |\n| `Procfile` | Process types and start commands (`web`, `worker`, `clock`, `release`) |\n| `package.json` | Node.js runtime, build scripts, framework deps (Next.js, React, etc.) |\n| `requirements.txt` / `Pipfile` / `pyproject.toml` | Python runtime, dependencies (Django, Flask, etc.) |\n| `Gemfile` | Ruby runtime, dependencies (Rails, Sidekiq, etc.) |\n| `go.mod` | Go runtime |\n| `Cargo.toml` | Rust runtime |\n| `app.json` | Declared add-ons, env var descriptions, buildpacks |\n| `runtime.txt` | Pinned runtime version |\n| `static.json` | Static site indicator |\n| `yarn.lock` / `pnpm-lock.yaml` | Package manager (affects build command) |\n\nFrom these files, determine:\n\n- **Runtime** — from dependency files (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Runtime version** — from `runtime.txt`, `.node-version`, or `engines` in `package.json`. If pinned, carry it over as an env var (e.g., `PYTHON_VERSION`, `NODE_VERSION`). If not pinned, do not specify a version — never assume or state what Render's default version is.\n- **Build command** — from package manager and framework (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Start commands** — from `Procfile` entries\n- **Process types** — from `Procfile` (web, worker, clock, release)\n- **Add-ons needed** — from `app.json` `addons` field, or infer from dependency files (e.g., `pg` in `package.json` suggests Postgres, `redis` suggests Key Value)\n- **Static site?** — from `static.json`, SPA framework deps, or static buildpack in `app.json`\n\n#### 1b. Enrich with Heroku MCP (if available)\n\nIf the Heroku MCP server is connected, call these tools to fill in details that aren't in the repo. The **dyno size** and **add-on plan slug** are critical — they determine which Render plans to use.\n\n1. `list_apps` — let user select which app to migrate (confirms app name)\n2. `get_app_info` — capture: region, stack, buildpacks, **config var names**\n3. `list_addons` — capture the **exact add-on plan slug** (e.g., `heroku-postgresql:essential-2`, `heroku-redis:premium-0`). The part after the colon maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n4. `ps_list` — capture the **exact dyno size** for each process type (e.g., `Standard-2X`, `Performance-M`). Each dyno size maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n5. `pg_info` (if Postgres exists) — capture **Data Size** (actual usage) and the plan's disk allocation. The plan's disk size determines the `diskSizeGB` value in the Blueprint (see the [service mapping](references/service-mapping.md)).\n\nIf Heroku MCP is **not** available, ask the user to provide:\n\n- Dyno sizes (or run `heroku ps:type -a <app>` and paste output)\n- Add-on plans (or run `heroku addons -a <app>` and paste output)\n- Database info (or run `heroku pg:info -a <app>` and paste output — captures plan name, data size, and disk allocation)\n- App region (`us` or `eu`)\n- Config var names (or run `heroku config -a <app> --shell` and paste output)\n\nIf the user cannot provide dyno sizes or add-on plans, use the fallback defaults from the [service mapping](references/service-mapping.md): `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\n#### Present summary\n\n```\nApp: [name] | Region: [region] | Runtime: [node/python/ruby/etc]\nSource: [local files | local files + Heroku MCP]\nBuild command: [inferred from buildpack/deps]\nProcesses:\n web: [command from Procfile] → Render web service ([mapped-plan])\n worker: [command] → Render background worker ([mapped-plan], Blueprint only)\n clock: [command] → Render cron job ([mapped-plan])\n release: [command] → Append to build command\nAdd-ons:\n Heroku Postgres ([plan-slug], [disk-size]) → Render Postgres ([mapped-plan], diskSizeGB: [size])\n Heroku Key-Value Store ([plan-slug]) → Render Key Value ([mapped-plan])\nConfig vars: 14 total (list names, not values)\n```\n\n### Step 2: Pre-Flight Check\n\nBefore creating anything, run through the [pre-flight checklist](references/preflight-checklist.md) to validate the migration plan. Key checks:\n\n- Runtime supported (or needs Dockerfile)\n- Worker dynos, release phase, static site detection\n- Third-party add-ons without Render equivalents\n- Git remote exists and is HTTPS format\n- Database size (large DBs need assisted migration)\n\nLook up each Heroku dyno size and add-on plan in the [service mapping](references/service-mapping.md) to determine the correct Render plans. Present the migration plan table from the [pre-flight checklist](references/preflight-checklist.md), flag resources that incur charges, direct the user to [Render pricing](https://render.com/pricing) for current details, and wait for confirmation before creating anything.\n\n### Determine Creation Method\n\nAfter the user approves the pre-flight plan, apply this decision rule. **Default to Blueprint** — only use MCP Direct Creation when every condition below is met.\n\n**Use Blueprint** (the default) when ANY are true:\n\n- Multiple process types (web + worker, web + cron, etc.)\n- Databases or Key Value stores needed\n- Background workers in the Procfile\n- User prefers Infrastructure-as-Code configuration\n\n**Fall back to MCP Direct Creation** ONLY when ALL are true:\n\n- Single web or static site service (one process type)\n- No background workers or cron jobs\n- No databases or Key Value stores\n\nIf unsure, use Blueprint. Most Heroku apps have at least a database, so Blueprint applies to the vast majority of migrations.\n\n### Step 3A: Generate Blueprint (Multi-Service)\n\nThis path has three stages. Always complete authoring; perform local validation and provide the apply flow when those actions are in scope.\n\n#### 3A-i. Write render.yaml\n\nGenerate a complete `render.yaml`. Write it to the repository root when operating in the user's repository; otherwise present the complete file in the response. Before authoring it, read the current specification-fetch, validation, repository-sync, and safety workflow in [references/blueprints.md](references/blueprints.md). Then use the [Blueprint example](references/blueprint-example.md) for the migration-specific structure.\n\n**IMPORTANT: Always use the `projects`/`environments` pattern.** The YAML must start with a `projects:` key — never use flat top-level `services:` or `databases:` keys. This groups all migrated resources into a single Render project.\n\n**Set the `plan:` field for each service and database using the mapped Render plan from the [service mapping](references/service-mapping.md).** Look up the Heroku dyno size (from `ps_list`) and add-on plan slug (from `list_addons`) to find the correct Render plan. If the Heroku plan is unknown, use the fallback defaults: `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\nGenerate the YAML following the full template, rules, and patterns in the [Blueprint example](references/blueprint-example.md). Critical rules:\n\n- Always use the `projects:`/`environments:` pattern — never flat top-level `services:`\n- Set every `plan:` field using the [service mapping](references/service-mapping.md)\n- Set `diskSizeGB` on databases from the Heroku disk allocation\n- Use `fromDatabase` for `DATABASE_URL` and `fromService` for `REDIS_URL` — never hardcode connection strings\n- Mark secrets with `sync: false`\n\n#### 3A-ii. Validate the Blueprint\n\nWhen a `render.yaml` file has been written locally, validate it before presenting it as ready to deploy. First, check if the Render CLI is installed:\n\n```bash\nrender --version\n```\n\nIf not installed, offer to install it when deployment-ready local validation is in scope:\n\n- macOS: `brew install render`\n- Linux/macOS: `curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh`\n\nOnce the CLI is available, run the validation command and show the output to the user:\n\n```bash\nrender blueprints validate render.yaml\n```\n\nIf validation fails, fix the errors in the YAML and re-validate. Repeat until validation passes. When the user requested only an example or no local file exists, provide the validation command without attempting installation or claiming that validation ran.\n\n#### 3A-iii. Provide the deploy URL\n\nWhen the user wants to apply the Blueprint, after validation passes:\n\n1. Instruct user to commit and push: `git add render.yaml && git commit -m \"Add Render migration Blueprint\" && git push`\n2. Get the repo URL by running `git remote get-url origin`. If the URL is SSH format (e.g., `git@github.com:user/repo.git`), convert it to HTTPS (`https://github.com/user/repo`). Then construct the deeplink: `https://dashboard.render.com/blueprint/new?repo=<HTTPS_REPO_URL>`\n3. Present the **actual working deeplink** to the user — never show a placeholder URL. Guide user to open it, fill in `sync: false` secrets, and click **Apply**\n\n**Do not skip the deploy URL.** The user needs this link to apply the Blueprint on Render.\n\n### Step 3B: MCP Direct Creation (Single-Service)\n\nBefore creating resources via MCP, follow [references/render-access.md](references/render-access.md) and verify that the active workspace is the one the user intends.\n\nFor single-service migrations without databases, create via MCP tools:\n\n1. **Web service** — `create_web_service` with:\n - `runtime`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `buildCommand`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `startCommand`: from Procfile `web:` entry\n - `repo`: user-provided GitHub/GitLab URL\n - `region`: mapped from Heroku region\n - `plan`: mapped from Heroku dyno size using the [service mapping](references/service-mapping.md) (fallback: `starter`)\n2. **Static site** — `create_static_site` if detected (instead of web service)\n\nPresent the creation result (service URL, ID) when complete.\n\n### Step 4: Migrate Environment Variables\n\nBefore inspecting or applying configuration, read [references/environment-variables.md](references/environment-variables.md) and preserve the migration-specific filtering and confirmation steps below.\n\n#### Gather config vars\n\nUse the first available source:\n\n1. **Heroku MCP** (preferred) — config vars from `get_app_info` results (Step 1b)\n2. **User-provided** — ask the user to paste output of `heroku config -a <app> --shell`\n3. **`app.json`** — var names and descriptions (no values, but useful for `sync: false` entries)\n\n#### Filter and categorize\n\nRemove auto-generated and Heroku-specific vars (see the full filter list in the [service mapping](references/service-mapping.md)):\n\n- `DATABASE_URL`, `REDIS_URL`, `REDIS_TLS_URL` (Render generates these)\n- `HEROKU_*` vars (e.g., `HEROKU_APP_NAME`, `HEROKU_SLUG_COMMIT`)\n- Add-on connection strings (`PAPERTRAIL_*`, `SENDGRID_*`, etc.)\n\nPresent filtered list to user — **do not write without confirmation**.\n\n#### Apply vars\n\n**Blueprint path (Step 3A):** Env vars are already embedded in the `render.yaml` on each service (non-secret values inline, secrets marked `sync: false` for the user to fill in during Blueprint apply). No separate MCP call is needed — skip to Step 5.\n\n**MCP path (Step 3B):** Inspect the current `update_environment_variables` operation, confirm whether it patches or replaces the collection, and apply only the confirmed variables while preserving unrelated keys.\n\n### Step 5: Data Migration\n\nFollow the [data migration guide](references/data-migration.md) to migrate Postgres and Key Value data. The guide covers sub-steps 5a through 5e in detail. Summary of the flow:\n\n1. **Pre-migration checks** — confirm Render resources are provisioned via `list_postgres_instances()` and `list_key_value()`, check source DB size, verify Render CLI (`render --version`), `pg_dump`, and `pg_restore` are installed\n2. **Gather connection strings** — Heroku Postgres via `pg_credentials` (MCP) or user CLI paste. For Key Value, construct a Dashboard deeplink from the ID.\n3. **Postgres migration** — two approaches based on size: **under 2 GB** uses `render psql` (no Render connection string needed); **2-50 GB** uses `pg_dump -Fc` + `pg_restore` with external connection string from Dashboard (faster, compressed, parallel restore).\n4. **Key Value** — usually skip (ephemeral cache). If persistent data, use `redis-cli` dump/restore with Dashboard-provided Render URL.\n5. **Data validation** — verify schema and row counts via `query_render_postgres`, compare against Heroku source if MCP is available.\n\n### Step 6: Verify Migration\n\nAfter user confirms database migration is complete, run through each check in order. Stop at the first failure, fix it, and redeploy before continuing.\n\n#### 1. Confirm deploy status\n\n```\nlist_deploys(serviceId: \"<service-id>\", limit: 1)\n```\n\nExpect `status: \"live\"`. If status is `failed`, inspect build and runtime logs immediately.\n\n#### 2. Verify service health\n\nHit the health endpoint (or `/`) and confirm a 200 response. If there is no health endpoint, verify the app binds to `0.0.0.0:$PORT` (not `localhost`).\n\n#### 3. Scan error logs\n\n```\nlist_logs(resource: [\"<service-id>\"], level: [\"error\"], limit: 50)\n```\n\nLook for clear failure signatures: missing env vars, connection refused, module not found, port binding errors.\n\n#### 4. Verify env vars and port binding\n\nConfirm all required env vars are set — especially secrets marked `sync: false` during Blueprint apply. Ensure the app binds to `0.0.0.0:$PORT`.\n\n#### 5. Check resource metrics\n\n```\nget_metrics(\n resourceId: \"<service-id>\",\n metricTypes: [\"http_request_count\", \"cpu_usage\", \"memory_usage\"]\n)\n```\n\nVerify CPU and memory are within expected ranges for the selected plan.\n\n#### 6. Confirm database connectivity\n\n```\nquery_render_postgres(postgresId: \"<postgres-id>\", sql: \"SELECT count(*) FROM <key_table>\")\n```\n\nRun a read-only query on a key table to confirm data was restored correctly. Compare row counts against the Heroku source if possible.\n\nPresent a health summary after all checks pass.\n\n### Step 7: DNS Cutover (Manual)\n\nInstruct user to:\n\n1. Add CNAME pointing domain to `[service-name].onrender.com`\n2. Remove/update old Heroku DNS entries\n3. Wait for propagation\n\n## Rollback Plan\n\nIf the migration fails at any point:\n\n- **Services created but not working**: Services can be deleted from the Render dashboard (MCP server intentionally does not support deletion). Heroku app is untouched until maintenance mode is enabled.\n- **Env vars wrong**: Follow [references/environment-variables.md](references/environment-variables.md), inspect the current update operation's patch-or-replace behavior, and correct only the intended keys.\n- **Database migration failed**: Render Postgres can be deleted and recreated. Heroku database is read-only during dump (no data loss). If `maintenance_off` is called on Heroku, the original app is fully operational again.\n- **DNS already changed**: Revert CNAME to Heroku and disable maintenance mode on Heroku.\n\nKey principle: **Heroku stays fully functional until the user explicitly cuts over DNS.** The migration is additive until that final step.\n\n## Error Handling\n\n- Service creation fails: show error, suggest fixes (invalid plan, bad repo URL)\n- Env var migration partially fails: show which succeeded/failed\n- Heroku auth errors: instruct `heroku login` or check `HEROKU_API_KEY`\n- Render auth errors: check Render API key in MCP config\n\n<!-- shared:documentation-retrieval -->\n## Current documentation retrieval\n\nWhenever this skill directs you to consult current Render documentation:\n\n1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as `curl`. Do not substitute web-search summaries for the document.\n2. Confirm that retrieval succeeded and returned the expected document, then read its contents. Saving a file or printing its path is not sufficient.\n3. If the request fails or your tool cannot read the Markdown response, open and read the linked HTML version instead.\n4. If neither version can be retrieved, disclose that the current reference is unavailable and follow any topic-specific fallback in the skill. Use bundled guidance only for stable constraints, and do not guess at changeable platform details.\n\nWhen a task requires multiple references, apply this workflow to each one and distinguish the documents you verified from those that remain unavailable.\n<!-- /shared:documentation-retrieval -->\n"
Full snapshot data
{
"description": "Migrate from Heroku to Render by reading local project files and generating equivalent Render services. Triggers: any mention of migrating from Heroku, moving off Heroku, Heroku to Render migration, or switching from Heroku. Reads Procfile, dependency files, and app config from the local repo. Optionally uses Heroku MCP to enrich with live config vars, add-on details, and dyno sizes. Uses Render MCP or Blueprint YAML to create services.",
"included_files": [
{
"relative_path": "references/blueprint-example.md",
"size_in_bytes": 7002
},
{
"relative_path": "references/blueprints.md",
"size_in_bytes": 2850
},
{
"relative_path": "references/buildpack-mapping.md",
"size_in_bytes": 6408
},
{
"relative_path": "references/data-migration.md",
"size_in_bytes": 9010
},
{
"relative_path": "references/environment-variables.md",
"size_in_bytes": 4653
},
{
"relative_path": "references/mcp-setup.md",
"size_in_bytes": 1746
},
{
"relative_path": "references/preflight-checklist.md",
"size_in_bytes": 3682
},
{
"relative_path": "references/render-access.md",
"size_in_bytes": 4830
},
{
"relative_path": "references/service-mapping.md",
"size_in_bytes": 9730
},
{
"relative_path": "references/service-types.md",
"size_in_bytes": 4703
}
],
"name": "render-migrate-from-heroku",
"skill_md_contents": "---\nname: render-migrate-from-heroku\ndescription: \"Migrate from Heroku to Render by reading local project files and generating equivalent Render services. Triggers: any mention of migrating from Heroku, moving off Heroku, Heroku to Render migration, or switching from Heroku. Reads Procfile, dependency files, and app config from the local repo. Optionally uses Heroku MCP to enrich with live config vars, add-on details, and dyno sizes. Uses Render MCP or Blueprint YAML to create services.\"\nlicense: MIT\ncompatibility: Render MCP server recommended for direct creation and automated verification; not required for the Blueprint path. Heroku MCP server is optional (enhances config var and add-on discovery).\nmetadata:\n author: Render\n version: \"1.5.0\"\n category: migration\n---\n\n# Heroku to Render Migration\n\nMigrate from Heroku to Render using the user's supplied inventory or local project files, then optionally enrich missing details with live Heroku data via MCP.\n\n## Prerequisites Check\n\nBefore starting, verify what's available:\n\n1. **App inventory** (required) — use complete details supplied by the user, or inspect local project files such as `Procfile`, `app.json`, `package.json`, `requirements.txt`, `Gemfile`, or `go.mod`\n2. **Render MCP** (recommended) — check if `list_services` tool is available. Required for MCP Direct Creation (Step 3B) and automated verification (Step 6). Not required for the Blueprint path — the Render CLI and Dashboard handle generation, validation, and deployment.\n3. **Heroku MCP** (optional) — check if `list_apps` tool is available\n\nDo not require local files or MCP when the user has already supplied enough information for the requested plan, Blueprint, or migration instructions. If Render MCP is missing and the user actually needs live Render access, use the Render access workflow in [references/render-access.md](references/render-access.md); the [MCP setup guide](references/mcp-setup.md) adds Heroku-specific setup. If Heroku MCP is missing, use supplied values or ask only for missing config-var names and add-on details.\n\n## Migration Workflow\n\nFor an end-to-end migration, execute the applicable steps in order. Present findings to the user and get confirmation before creating any resources.\n\nBefore mapping Heroku process types to Render service types, read [references/service-types.md](references/service-types.md).\n\n### Choose the narrow workflow\n\n- **Complete inventory + Blueprint request:** read `references/service-mapping.md`, `references/blueprint-example.md`, and `references/blueprints.md`; generate the complete Blueprint directly. Do not call live tools merely to rediscover values the user supplied.\n- **Single-service migration:** gather the missing inventory, present the plan, and use MCP Direct Creation only after the user asks to create the service and confirms the plan.\n- **Data-migration question:** read `references/service-mapping.md` and `references/data-migration.md`; provide the applicable procedure without performing live operations unless requested.\n\nUse the exact Heroku plan row in `references/service-mapping.md`, including its mapped Render plan and disk allocation. These migration mappings intentionally use legacy Render plan names where appropriate; do not substitute a remembered current Plan ID.\n\n### Step 1: Inventory Heroku App\n\nGather app details from local files first, then supplement with Heroku MCP if available.\n\n#### 1a. Read local project files (always)\n\nRead these files from the repo to determine runtime, commands, and dependencies:\n\n| File | What it tells you |\n| ------------------------------------------------- | ---------------------------------------------------------------------- |\n| `Procfile` | Process types and start commands (`web`, `worker`, `clock`, `release`) |\n| `package.json` | Node.js runtime, build scripts, framework deps (Next.js, React, etc.) |\n| `requirements.txt` / `Pipfile` / `pyproject.toml` | Python runtime, dependencies (Django, Flask, etc.) |\n| `Gemfile` | Ruby runtime, dependencies (Rails, Sidekiq, etc.) |\n| `go.mod` | Go runtime |\n| `Cargo.toml` | Rust runtime |\n| `app.json` | Declared add-ons, env var descriptions, buildpacks |\n| `runtime.txt` | Pinned runtime version |\n| `static.json` | Static site indicator |\n| `yarn.lock` / `pnpm-lock.yaml` | Package manager (affects build command) |\n\nFrom these files, determine:\n\n- **Runtime** — from dependency files (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Runtime version** — from `runtime.txt`, `.node-version`, or `engines` in `package.json`. If pinned, carry it over as an env var (e.g., `PYTHON_VERSION`, `NODE_VERSION`). If not pinned, do not specify a version — never assume or state what Render's default version is.\n- **Build command** — from package manager and framework (see the [buildpack mapping](references/buildpack-mapping.md))\n- **Start commands** — from `Procfile` entries\n- **Process types** — from `Procfile` (web, worker, clock, release)\n- **Add-ons needed** — from `app.json` `addons` field, or infer from dependency files (e.g., `pg` in `package.json` suggests Postgres, `redis` suggests Key Value)\n- **Static site?** — from `static.json`, SPA framework deps, or static buildpack in `app.json`\n\n#### 1b. Enrich with Heroku MCP (if available)\n\nIf the Heroku MCP server is connected, call these tools to fill in details that aren't in the repo. The **dyno size** and **add-on plan slug** are critical — they determine which Render plans to use.\n\n1. `list_apps` — let user select which app to migrate (confirms app name)\n2. `get_app_info` — capture: region, stack, buildpacks, **config var names**\n3. `list_addons` — capture the **exact add-on plan slug** (e.g., `heroku-postgresql:essential-2`, `heroku-redis:premium-0`). The part after the colon maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n4. `ps_list` — capture the **exact dyno size** for each process type (e.g., `Standard-2X`, `Performance-M`). Each dyno size maps to a specific Render plan in the [service mapping](references/service-mapping.md).\n5. `pg_info` (if Postgres exists) — capture **Data Size** (actual usage) and the plan's disk allocation. The plan's disk size determines the `diskSizeGB` value in the Blueprint (see the [service mapping](references/service-mapping.md)).\n\nIf Heroku MCP is **not** available, ask the user to provide:\n\n- Dyno sizes (or run `heroku ps:type -a <app>` and paste output)\n- Add-on plans (or run `heroku addons -a <app>` and paste output)\n- Database info (or run `heroku pg:info -a <app>` and paste output — captures plan name, data size, and disk allocation)\n- App region (`us` or `eu`)\n- Config var names (or run `heroku config -a <app> --shell` and paste output)\n\nIf the user cannot provide dyno sizes or add-on plans, use the fallback defaults from the [service mapping](references/service-mapping.md): `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\n#### Present summary\n\n```\nApp: [name] | Region: [region] | Runtime: [node/python/ruby/etc]\nSource: [local files | local files + Heroku MCP]\nBuild command: [inferred from buildpack/deps]\nProcesses:\n web: [command from Procfile] → Render web service ([mapped-plan])\n worker: [command] → Render background worker ([mapped-plan], Blueprint only)\n clock: [command] → Render cron job ([mapped-plan])\n release: [command] → Append to build command\nAdd-ons:\n Heroku Postgres ([plan-slug], [disk-size]) → Render Postgres ([mapped-plan], diskSizeGB: [size])\n Heroku Key-Value Store ([plan-slug]) → Render Key Value ([mapped-plan])\nConfig vars: 14 total (list names, not values)\n```\n\n### Step 2: Pre-Flight Check\n\nBefore creating anything, run through the [pre-flight checklist](references/preflight-checklist.md) to validate the migration plan. Key checks:\n\n- Runtime supported (or needs Dockerfile)\n- Worker dynos, release phase, static site detection\n- Third-party add-ons without Render equivalents\n- Git remote exists and is HTTPS format\n- Database size (large DBs need assisted migration)\n\nLook up each Heroku dyno size and add-on plan in the [service mapping](references/service-mapping.md) to determine the correct Render plans. Present the migration plan table from the [pre-flight checklist](references/preflight-checklist.md), flag resources that incur charges, direct the user to [Render pricing](https://render.com/pricing) for current details, and wait for confirmation before creating anything.\n\n### Determine Creation Method\n\nAfter the user approves the pre-flight plan, apply this decision rule. **Default to Blueprint** — only use MCP Direct Creation when every condition below is met.\n\n**Use Blueprint** (the default) when ANY are true:\n\n- Multiple process types (web + worker, web + cron, etc.)\n- Databases or Key Value stores needed\n- Background workers in the Procfile\n- User prefers Infrastructure-as-Code configuration\n\n**Fall back to MCP Direct Creation** ONLY when ALL are true:\n\n- Single web or static site service (one process type)\n- No background workers or cron jobs\n- No databases or Key Value stores\n\nIf unsure, use Blueprint. Most Heroku apps have at least a database, so Blueprint applies to the vast majority of migrations.\n\n### Step 3A: Generate Blueprint (Multi-Service)\n\nThis path has three stages. Always complete authoring; perform local validation and provide the apply flow when those actions are in scope.\n\n#### 3A-i. Write render.yaml\n\nGenerate a complete `render.yaml`. Write it to the repository root when operating in the user's repository; otherwise present the complete file in the response. Before authoring it, read the current specification-fetch, validation, repository-sync, and safety workflow in [references/blueprints.md](references/blueprints.md). Then use the [Blueprint example](references/blueprint-example.md) for the migration-specific structure.\n\n**IMPORTANT: Always use the `projects`/`environments` pattern.** The YAML must start with a `projects:` key — never use flat top-level `services:` or `databases:` keys. This groups all migrated resources into a single Render project.\n\n**Set the `plan:` field for each service and database using the mapped Render plan from the [service mapping](references/service-mapping.md).** Look up the Heroku dyno size (from `ps_list`) and add-on plan slug (from `list_addons`) to find the correct Render plan. If the Heroku plan is unknown, use the fallback defaults: `starter` for compute, `basic-1gb` for Postgres, `starter` for Key Value.\n\nGenerate the YAML following the full template, rules, and patterns in the [Blueprint example](references/blueprint-example.md). Critical rules:\n\n- Always use the `projects:`/`environments:` pattern — never flat top-level `services:`\n- Set every `plan:` field using the [service mapping](references/service-mapping.md)\n- Set `diskSizeGB` on databases from the Heroku disk allocation\n- Use `fromDatabase` for `DATABASE_URL` and `fromService` for `REDIS_URL` — never hardcode connection strings\n- Mark secrets with `sync: false`\n\n#### 3A-ii. Validate the Blueprint\n\nWhen a `render.yaml` file has been written locally, validate it before presenting it as ready to deploy. First, check if the Render CLI is installed:\n\n```bash\nrender --version\n```\n\nIf not installed, offer to install it when deployment-ready local validation is in scope:\n\n- macOS: `brew install render`\n- Linux/macOS: `curl -fsSL https://raw.githubusercontent.com/render-oss/cli/main/bin/install.sh | sh`\n\nOnce the CLI is available, run the validation command and show the output to the user:\n\n```bash\nrender blueprints validate render.yaml\n```\n\nIf validation fails, fix the errors in the YAML and re-validate. Repeat until validation passes. When the user requested only an example or no local file exists, provide the validation command without attempting installation or claiming that validation ran.\n\n#### 3A-iii. Provide the deploy URL\n\nWhen the user wants to apply the Blueprint, after validation passes:\n\n1. Instruct user to commit and push: `git add render.yaml && git commit -m \"Add Render migration Blueprint\" && git push`\n2. Get the repo URL by running `git remote get-url origin`. If the URL is SSH format (e.g., `git@github.com:user/repo.git`), convert it to HTTPS (`https://github.com/user/repo`). Then construct the deeplink: `https://dashboard.render.com/blueprint/new?repo=<HTTPS_REPO_URL>`\n3. Present the **actual working deeplink** to the user — never show a placeholder URL. Guide user to open it, fill in `sync: false` secrets, and click **Apply**\n\n**Do not skip the deploy URL.** The user needs this link to apply the Blueprint on Render.\n\n### Step 3B: MCP Direct Creation (Single-Service)\n\nBefore creating resources via MCP, follow [references/render-access.md](references/render-access.md) and verify that the active workspace is the one the user intends.\n\nFor single-service migrations without databases, create via MCP tools:\n\n1. **Web service** — `create_web_service` with:\n - `runtime`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `buildCommand`: from the [buildpack mapping](references/buildpack-mapping.md)\n - `startCommand`: from Procfile `web:` entry\n - `repo`: user-provided GitHub/GitLab URL\n - `region`: mapped from Heroku region\n - `plan`: mapped from Heroku dyno size using the [service mapping](references/service-mapping.md) (fallback: `starter`)\n2. **Static site** — `create_static_site` if detected (instead of web service)\n\nPresent the creation result (service URL, ID) when complete.\n\n### Step 4: Migrate Environment Variables\n\nBefore inspecting or applying configuration, read [references/environment-variables.md](references/environment-variables.md) and preserve the migration-specific filtering and confirmation steps below.\n\n#### Gather config vars\n\nUse the first available source:\n\n1. **Heroku MCP** (preferred) — config vars from `get_app_info` results (Step 1b)\n2. **User-provided** — ask the user to paste output of `heroku config -a <app> --shell`\n3. **`app.json`** — var names and descriptions (no values, but useful for `sync: false` entries)\n\n#### Filter and categorize\n\nRemove auto-generated and Heroku-specific vars (see the full filter list in the [service mapping](references/service-mapping.md)):\n\n- `DATABASE_URL`, `REDIS_URL`, `REDIS_TLS_URL` (Render generates these)\n- `HEROKU_*` vars (e.g., `HEROKU_APP_NAME`, `HEROKU_SLUG_COMMIT`)\n- Add-on connection strings (`PAPERTRAIL_*`, `SENDGRID_*`, etc.)\n\nPresent filtered list to user — **do not write without confirmation**.\n\n#### Apply vars\n\n**Blueprint path (Step 3A):** Env vars are already embedded in the `render.yaml` on each service (non-secret values inline, secrets marked `sync: false` for the user to fill in during Blueprint apply). No separate MCP call is needed — skip to Step 5.\n\n**MCP path (Step 3B):** Inspect the current `update_environment_variables` operation, confirm whether it patches or replaces the collection, and apply only the confirmed variables while preserving unrelated keys.\n\n### Step 5: Data Migration\n\nFollow the [data migration guide](references/data-migration.md) to migrate Postgres and Key Value data. The guide covers sub-steps 5a through 5e in detail. Summary of the flow:\n\n1. **Pre-migration checks** — confirm Render resources are provisioned via `list_postgres_instances()` and `list_key_value()`, check source DB size, verify Render CLI (`render --version`), `pg_dump`, and `pg_restore` are installed\n2. **Gather connection strings** — Heroku Postgres via `pg_credentials` (MCP) or user CLI paste. For Key Value, construct a Dashboard deeplink from the ID.\n3. **Postgres migration** — two approaches based on size: **under 2 GB** uses `render psql` (no Render connection string needed); **2-50 GB** uses `pg_dump -Fc` + `pg_restore` with external connection string from Dashboard (faster, compressed, parallel restore).\n4. **Key Value** — usually skip (ephemeral cache). If persistent data, use `redis-cli` dump/restore with Dashboard-provided Render URL.\n5. **Data validation** — verify schema and row counts via `query_render_postgres`, compare against Heroku source if MCP is available.\n\n### Step 6: Verify Migration\n\nAfter user confirms database migration is complete, run through each check in order. Stop at the first failure, fix it, and redeploy before continuing.\n\n#### 1. Confirm deploy status\n\n```\nlist_deploys(serviceId: \"<service-id>\", limit: 1)\n```\n\nExpect `status: \"live\"`. If status is `failed`, inspect build and runtime logs immediately.\n\n#### 2. Verify service health\n\nHit the health endpoint (or `/`) and confirm a 200 response. If there is no health endpoint, verify the app binds to `0.0.0.0:$PORT` (not `localhost`).\n\n#### 3. Scan error logs\n\n```\nlist_logs(resource: [\"<service-id>\"], level: [\"error\"], limit: 50)\n```\n\nLook for clear failure signatures: missing env vars, connection refused, module not found, port binding errors.\n\n#### 4. Verify env vars and port binding\n\nConfirm all required env vars are set — especially secrets marked `sync: false` during Blueprint apply. Ensure the app binds to `0.0.0.0:$PORT`.\n\n#### 5. Check resource metrics\n\n```\nget_metrics(\n resourceId: \"<service-id>\",\n metricTypes: [\"http_request_count\", \"cpu_usage\", \"memory_usage\"]\n)\n```\n\nVerify CPU and memory are within expected ranges for the selected plan.\n\n#### 6. Confirm database connectivity\n\n```\nquery_render_postgres(postgresId: \"<postgres-id>\", sql: \"SELECT count(*) FROM <key_table>\")\n```\n\nRun a read-only query on a key table to confirm data was restored correctly. Compare row counts against the Heroku source if possible.\n\nPresent a health summary after all checks pass.\n\n### Step 7: DNS Cutover (Manual)\n\nInstruct user to:\n\n1. Add CNAME pointing domain to `[service-name].onrender.com`\n2. Remove/update old Heroku DNS entries\n3. Wait for propagation\n\n## Rollback Plan\n\nIf the migration fails at any point:\n\n- **Services created but not working**: Services can be deleted from the Render dashboard (MCP server intentionally does not support deletion). Heroku app is untouched until maintenance mode is enabled.\n- **Env vars wrong**: Follow [references/environment-variables.md](references/environment-variables.md), inspect the current update operation's patch-or-replace behavior, and correct only the intended keys.\n- **Database migration failed**: Render Postgres can be deleted and recreated. Heroku database is read-only during dump (no data loss). If `maintenance_off` is called on Heroku, the original app is fully operational again.\n- **DNS already changed**: Revert CNAME to Heroku and disable maintenance mode on Heroku.\n\nKey principle: **Heroku stays fully functional until the user explicitly cuts over DNS.** The migration is additive until that final step.\n\n## Error Handling\n\n- Service creation fails: show error, suggest fixes (invalid plan, bad repo URL)\n- Env var migration partially fails: show which succeeded/failed\n- Heroku auth errors: instruct `heroku login` or check `HEROKU_API_KEY`\n- Render auth errors: check Render API key in MCP config\n\n<!-- shared:documentation-retrieval -->\n## Current documentation retrieval\n\nWhenever this skill directs you to consult current Render documentation:\n\n1. Retrieve the linked Markdown document directly with an available URL-fetching tool or HTTP client, such as `curl`. Do not substitute web-search summaries for the document.\n2. Confirm that retrieval succeeded and returned the expected document, then read its contents. Saving a file or printing its path is not sufficient.\n3. If the request fails or your tool cannot read the Markdown response, open and read the linked HTML version instead.\n4. If neither version can be retrieved, disclose that the current reference is unavailable and follow any topic-specific fallback in the skill. Use bundled guidance only for stable constraints, and do not guess at changeable platform details.\n\nWhen a task requires multiple references, apply this workflow to each one and distinguish the documents you verified from those that remain unavailable.\n<!-- /shared:documentation-retrieval -->\n"
}SHA-256 of public snapshot: 97f76a8e2887fcc0d0e57cef58d6fc585fd1d6db5cb60f9f81579ddb7900c511