<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Gregale]]></title><description><![CDATA[Notes from building Gregale: deploying APIs, background jobs, Postgres and MCP servers, hosting choices, and apps that coding agents deploy and operate.]]></description><link>https://gregale.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b080ba91b8f12f5b88bc781/810fdaed-51f0-4a1d-b0a4-d3c91ba95195.png</url><title>Gregale</title><link>https://gregale.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Sat, 28 Nov 2026 00:55:07 GMT</lastBuildDate><atom:link href="https://gregale.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Let Cursor's agent deploy to production with required approval for risky changes]]></title><description><![CDATA[Give Cursor a scoped Gregale agent token and project rules, with server-side approval gates, budgets, undo and canary rollbacks.]]></description><link>https://gregale.hashnode.dev/let-cursor-s-agent-deploy-to-production-with-required-approval-for-risky-changes</link><guid isPermaLink="true">https://gregale.hashnode.dev/let-cursor-s-agent-deploy-to-production-with-required-approval-for-risky-changes</guid><category><![CDATA[cursor]]></category><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[Devops]]></category><category><![CDATA[cybersecurity]]></category><category><![CDATA[software development]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 22:27:48 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/cursor-deploy-production-safely">gregale.dev</a>. I build Gregale, so read this as a vendor's page. This post was written with AI assistance.</em></p>
<p><strong>To let Cursor deploy to production safely, give it a scoped Gregale agent key via <code>GREGALE_TOKEN</code> instead of your personal <code>gregale login</code> session, or connect it to Gregale's hosted MCP server.</strong> Cursor can then build, deploy, inspect logs, and check errors non-interactively while Gregale enforces production gates in the API: risky changes pause for your approval link, releases ramp through 1%, 10%, 50% and 100% with automatic 5xx rollback, non-code changes can be undone, and a per-agent budget caps spend growth.</p>
<h2>Set it up</h2>
<pre><code class="language-sh">curl -fsSL https://get.gregale.dev | sh
gregale login                              # you sign in once in your browser
gregale key create cursor-agent --agent    # scoped key for Cursor, not your login
gregale init --agents --name my-api        # deploy, check and rollback steps in AGENTS.md
</code></pre>
<p>Set <code>GREGALE_TOKEN</code> in Cursor's terminal or MCP environment (do not commit the token into Git or paste it into rules files). <code>GREGALE_TOKEN</code> overrides any saved human login so Gregale applies agent limits automatically. Cursor reads <code>AGENTS.md</code> in the repository root, and you can also register Gregale's hosted MCP server (in preview) cleanly with one command:</p>
<pre><code class="language-sh">gregale mcp connect --client cursor
</code></pre>
<h2>Guardrails enforced in Gregale's API</h2>
<table>
<thead>
<tr>
<th>Risk</th>
<th>What Gregale enforces</th>
</tr>
</thead>
<tbody><tr>
<td>Cursor deletes or modifies production</td>
<td>Destructive or risky production mutations pause and return a review link for human approval (<a href="https://gregale.dev/articles/ai-agent-production-approval">how</a>)</td>
</tr>
<tr>
<td>A broken release takes production down</td>
<td>Every deploy climbs 1% → 10% → 50% → 100% and rolls back automatically on 5xx spikes (beta)</td>
</tr>
<tr>
<td>Cursor alters env vars, crons or scale</td>
<td><code>gregale mcp connection undo</code> reverses non-code settings, and <code>activity</code> audits writes for 7 days (<a href="https://gregale.dev/articles/undo-ai-agent-changes">how</a>)</td>
</tr>
<tr>
<td>A retry loop inflates hosting costs</td>
<td>Per-agent budget + <code>gregale scale --plan</code> cost preview check spend before changes apply (<a href="https://gregale.dev/articles/ai-agent-hosting-budget">how</a>)</td>
</tr>
</tbody></table>
<p>Because every rule runs server-side in Gregale's API rather than relying on a <code>.cursorrules</code> prompt, the guardrails hold even if Cursor invokes shell commands autonomously.</p>
<h2>What Cursor runs in day-to-day deploys</h2>
<pre><code class="language-sh">gregale deploy --dry-run
gregale --non-interactive --json deploy --path . --worktree --name my-api
gregale --non-interactive --json app health my-api --errors
</code></pre>
<p><code>--non-interactive --json</code> never opens a browser or blocks on interactive prompts, and emits structured JSON error codes on stderr so Cursor can diagnose failures without scraping HTML.</p>
<h2>Sources</h2>
<p><a href="https://gregale.dev/docs/cursor">Deploy with Cursor</a>, <a href="https://gregale.dev/docs/agents">Use Gregale from coding agents</a>, <a href="https://gregale.dev/articles/best-cloud-for-ai-coding-agents">Best cloud platform for AI coding agents in 2026</a>.</p>
<h2>FAQ</h2>
<p><strong>How do I let Cursor deploy to Gregale without risking production?</strong></p>
<p>Run <code>gregale key create cursor-agent --agent</code>, set it as <code>GREGALE_TOKEN</code> in Cursor instead of relying on your personal <code>gregale login</code>, add <code>AGENTS.md</code> via <code>gregale init --agents</code>, and let Gregale enforce approval links, per-agent spend caps and 1% canary rollbacks in the API.</p>
<p><strong>Does Cursor support Gregale’s MCP server?</strong></p>
<p>Yes. Run <code>gregale mcp connect --client cursor</code> to connect Cursor to <code>https://api.gregale.dev/mcp</code> over OAuth.</p>
<p><strong>Are <code>.cursorrules</code> enough to stop unsafe production commands?</strong></p>
<p>No. Prompt rules can be ignored or misinterpreted, whereas Gregale enforces approval gates, budget checks, mutation undo and 5xx canary rollbacks server-side whenever <code>GREGALE_TOKEN</code> is an <code>--agent</code> key.</p>
]]></content:encoded></item><item><title><![CDATA[Cap what an AI agent adds to your hosting bill]]></title><description><![CDATA[Each AI agent on Gregale has a monthly budget for the always-on capacity it adds; a change past it waits for your approval, with its monthly cost.]]></description><link>https://gregale.hashnode.dev/cap-what-an-ai-agent-adds-to-your-hosting-bill</link><guid isPermaLink="true">https://gregale.hashnode.dev/cap-what-an-ai-agent-adds-to-your-hosting-bill</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[ai-agent]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Cloud Computing]]></category><category><![CDATA[finops]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 19:27:55 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/ai-agent-hosting-budget">gregale.dev</a>. I build Gregale, so read this as a vendor's page. This post was written with AI assistance.</em></p>
<p><strong>On Gregale, every AI agent has a monthly budget for the always-on capacity it adds to your bill.</strong> An agent can raise what you pay without any traffic, for example by keeping instances warm, adding workers or giving warm instances more RAM. Gregale prices each such change before it is made. Within the budget it goes through; past it, the change waits for your approval, and the review page shows what it adds per month.</p>
<h2>What the budget counts</h2>
<p>The always-on cost the agent's changes keep running:</p>
<ul>
<li>warm instances (<code>min_instances</code>, a scaling policy's floor or schedule),</li>
<li>services and workers, whose replicas run whatever the traffic,</li>
<li>more RAM on warm instances,</li>
<li>prewarming.</li>
</ul>
<p>Each change is priced by how much it adds at the overage rate, before it is made. Traffic-driven usage is not counted: your account's spend cap still bounds that. Lowering cost never asks, and gives the budget back.</p>
<p>The default is half your plan's default spend cap. Set one per agent:</p>
<pre><code class="language-sh">gregale mcp connection budget &lt;id&gt;             # budget and the always-on cost in use
gregale mcp connection budget &lt;id&gt; --set 40    # $40 a month
gregale mcp connection budget &lt;id&gt; --unlimited
gregale mcp connection budget &lt;id&gt; --default
</code></pre>
<p>An organization can cap every agent acting in it; the lower of the agent's budget and the ceiling applies:</p>
<pre><code class="language-sh">gregale org agent policy set --org acme --agents allow --max-budget 100
</code></pre>
<h2>The agent can check the cost first</h2>
<p>An agent reads its own budget with <code>gregale mcp connection budget --self</code> (MCP: <code>gregale_agent_budget</code>) and can price a change before it makes it: <code>gregale app &lt;slug&gt; scale --plan</code> or the MCP tool <code>gregale_plan_scale</code> shows the added cost, the budget left and whether a person would be asked. The header <code>Gregale-Agent-Preview: budget</code> does the same for any client; Gregale prices it as the real request and changes nothing.</p>
<h2>How other setups compare</h2>
<p>Cloud spend caps and budget alerts work on a whole account or project. They tell you after the money is spent, or stop everything when the cap is hit, and they don't say which agent added the cost. Gregale prices each agent's change before it happens and stops only that change.</p>
<h2>Related</h2>
<ul>
<li><a href="https://gregale.dev/articles/ai-agent-production-approval">Human approval before an AI agent changes production</a></li>
<li><a href="https://gregale.dev/articles/undo-ai-agent-changes">Undo what an AI agent changed</a></li>
<li>Reference: <a href="https://gregale.dev/docs/agents.md#limit-what-an-agent-adds-to-your-bill">Limit what an agent adds to your bill</a></li>
</ul>
<h2>FAQ</h2>
<p><strong>What does the agent budget count?</strong></p>
<p>The always-on cost the agent's changes keep running: warm instances, services and workers, more RAM on warm instances, and prewarming. Traffic-driven usage is not counted; your account's spend cap still bounds it.</p>
<p><strong>What is the default budget?</strong></p>
<p>Half of your plan's default spend cap. You can set a budget per agent, make it unlimited, or go back to the default with <code>gregale mcp connection budget</code>.</p>
<p><strong>Does the budget reset every month?</strong></p>
<p>No. It holds the total always-on cost the agent's changes keep running, so capacity it added last month still counts. Lowering cost never asks and gives the budget back.</p>
<p><strong>Can the agent check the cost before it asks?</strong></p>
<p>Yes. <code>gregale app &lt;slug&gt; scale --plan</code>, the MCP tool <code>gregale_plan_scale</code>, or the header <code>Gregale-Agent-Preview: budget</code> prices a change, shows the budget left and whether a person would be asked, and changes nothing.</p>
<p><strong>Can an organization cap every agent?</strong></p>
<p>Yes. <code>gregale org agent policy set --max-budget</code> sets a ceiling; the lower of the agent's budget and the ceiling applies.</p>
]]></content:encoded></item><item><title><![CDATA[Undo what an AI agent changed in production]]></title><description><![CDATA[Gregale keeps a 7-day log of every change an AI agent makes and reverses them with one command, from deploys and settings to the apps it created.]]></description><link>https://gregale.hashnode.dev/undo-what-an-ai-agent-changed-in-production</link><guid isPermaLink="true">https://gregale.hashnode.dev/undo-what-an-ai-agent-changed-in-production</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[ai-agent]]></category><category><![CDATA[Devops]]></category><category><![CDATA[cybersecurity]]></category><category><![CDATA[Cloud Computing]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 16:27:47 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/undo-ai-agent-changes">gregale.dev</a>. I build Gregale, so read this as a vendor's page. This post was written with AI assistance.</em></p>
<p><strong>Gregale can reverse what an AI agent changed with one command.</strong> It keeps every write an agent makes for 7 days, and <code>gregale mcp connection undo</code> lists the agent's changes newest first, says what undoing each will do, and reverses them once you confirm. That covers more than code: settings, scaling, variables, traffic splits, and the apps, crons, domains and databases the agent created or deleted.</p>
<h2>Undo an agent's changes</h2>
<pre><code class="language-sh">gregale mcp connection list                        # find the agent's id
gregale mcp connection undo &lt;id&gt; --plan            # show what undo would do, change nothing
gregale mcp connection undo &lt;id&gt;                   # the last 24 hours
gregale mcp connection undo &lt;id&gt; --since 2h
gregale mcp connection undo &lt;id&gt; --entry &lt;activity-id&gt;
</code></pre>
<h2>What undo puts back</h2>
<ul>
<li><strong>Deploys and rollbacks.</strong> A deployment the agent started is cancelled while it builds; once it serves, the app goes back to the deployment that served before it.</li>
<li><strong>Promotions and traffic changes.</strong> Live deployments get back the exact traffic split they had.</li>
<li><strong>App settings and scaling</strong>, such as <code>min_instances</code>, <code>ram_mb</code>, <code>idle_timeout_s</code>, egress and CORS settings.</li>
<li><strong>Variables</strong> of the app and of its project's environments.</li>
<li><strong>Things the agent created</strong>, such as apps, crons, domains and Postgres databases, are removed. An app is parked and can be restored for 7 days; a database can be undeleted for 7 days.</li>
<li><strong>Things the agent deleted come back</strong>: an app or database within its 7-day restore window, a cron or custom domain created again as it was.</li>
</ul>
<p>Undo runs through the same API as any other change, with your access, so it is validated the same way.</p>
<h2>What it can't undo</h2>
<p>The plan says so, and why, before anything changes: a secret the agent set or removed (Gregale keeps no copy of a replaced secret, so set it again), an app's first deploy, an individual canary step, and a deleted bucket. If a person changed a resource after the agent did, undo leaves it alone unless you pass <code>--force</code>, so it never overwrites someone's later fix.</p>
<h2>See what an agent did first</h2>
<pre><code class="language-sh">gregale mcp connection status              # every agent: pending approvals, cost, what undo can reverse
gregale mcp connection activity &lt;id&gt;       # each write: when, method, path, status, approval, reason
</code></pre>
<p>The activity log keeps each write request for 7 days with the approval it went through and the reason the agent gave. Request bodies are never kept.</p>
<h2>How other setups compare</h2>
<p>Redeploying the last good version restores your code, but not the rest of what an agent may have touched: an environment variable, a scaling setting, a cron, a domain or a deleted database. On most platforms you rebuild that by hand from an audit log, if there is one. Coding agents' own undo (rewinding a session, reverting file edits) covers your working copy, not what is already live.</p>
<p>Gregale records each agent's changes as it makes them, so it can reverse them for you.</p>
<h2>Related</h2>
<ul>
<li><a href="https://gregale.dev/articles/ai-agent-production-approval">Human approval before an AI agent changes production</a></li>
<li><a href="https://gregale.dev/articles/canary-deploys">Canary deploys with automatic rollback</a></li>
<li><a href="https://gregale.dev/articles/hosting-mcp-server-deploy-logs-rollback">Hosting platforms with an MCP server that deploys, reads logs and rolls back</a></li>
<li>Reference: <a href="https://gregale.dev/docs/agents.md#undo-what-an-agent-changed">Undo what an agent changed</a></li>
</ul>
<h2>FAQ</h2>
<p><strong>Is undo the same as rolling back a deploy?</strong></p>
<p>No. A rollback restores code. Undo also puts back the settings, scaling, variables, traffic split, crons, domains and databases the agent changed, created or deleted, newest first.</p>
<p><strong>What can't undo reverse?</strong></p>
<p>A secret the agent set or removed (Gregale keeps no copy of a replaced secret), an app's first deploy, an individual canary step and a deleted bucket. The plan lists anything it cannot reverse and why before you confirm.</p>
<p><strong>What if someone changed the same thing after the agent did?</strong></p>
<p>Undo leaves that resource as it is, so it never overwrites a person's later change. Pass <code>--force</code> to undo it anyway.</p>
<p><strong>Can the agent undo its own mistakes?</strong></p>
<p>It can plan an undo of its own changes, never another key's, with the MCP tools <code>gregale_plan_undo</code> and <code>gregale_apply_undo</code>. Applying always waits for your approval.</p>
<p><strong>How long are changes kept?</strong></p>
<p>Seven days. Each change can be undone once.</p>
]]></content:encoded></item><item><title><![CDATA[Human approval before an AI agent changes production]]></title><description><![CDATA[An AI coding agent on Gregale asks a person before it deletes, deploys to production, touches credentials or changes billing.]]></description><link>https://gregale.hashnode.dev/human-approval-before-an-ai-agent-changes-production</link><guid isPermaLink="true">https://gregale.hashnode.dev/human-approval-before-an-ai-agent-changes-production</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[ai-agent]]></category><category><![CDATA[Devops]]></category><category><![CDATA[cybersecurity]]></category><category><![CDATA[Software Engineering]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 13:27:58 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/ai-agent-production-approval">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>On Gregale, an AI coding agent has to ask a person before it makes a risky production change.</strong> An agent key, or an agent connected to Gregale's hosted MCP server, must get your approval before it deletes something, deploys or rolls back a production app, creates or rotates credentials, or changes billing. The request stops with a review link; you open it, see exactly what the agent will send, and approve or deny. Reads and previews are not gated, so the agent keeps working at full speed there.</p>
<h2>How an approval works</h2>
<ol>
<li><strong>The agent makes the request.</strong> Gregale answers <code>428 approval_required</code> with a review link instead of carrying it out.</li>
<li><strong>The agent shows you the link.</strong> The CLI prints it with the error. <code>gregale --wait-for-approval &lt;command&gt;</code> waits for your decision instead.</li>
<li><strong>You decide, signed in.</strong> The review page shows the exact method, path and body. Only the member who connected the agent, or an owner or admin of its organization, can decide, from a signed-in dashboard session and never with an API key. A delete, production, credentials or billing approval also needs a sign-in from the last 15 minutes.</li>
<li><strong>The agent repeats the same request once.</strong> It cannot swap in a different one. A request expires 30 minutes after it was made.</li>
<li><strong>A denial sticks.</strong> If the agent tries a denied or expired request again within 30 minutes, it gets <code>403 approval_denied</code> with your reason, or <code>410 approval_expired</code>, instead of a new link, so it knows to stop and ask.</li>
</ol>
<p>The agent can say why it is asking (the <code>Gregale-Agent-Reason</code> header, or <code>--agent-reason</code> on the CLI). The reason shows on the review page, in the approval email and in the agent's activity log. It is the agent's own words: what you approve is still the exact request shown.</p>
<h2>What counts as risky</h2>
<table>
<thead>
<tr>
<th>Category</th>
<th>Examples</th>
</tr>
</thead>
<tbody><tr>
<td><code>production</code></td>
<td>Deploying, promoting or rolling back a production app; changing its variables, secrets or settings</td>
</tr>
<tr>
<td><code>delete</code></td>
<td>Deleting apps, databases, buckets, crons or domains</td>
</tr>
<tr>
<td><code>credentials</code></td>
<td>Creating or rotating keys and secrets; attaching a debugger to a developer environment</td>
</tr>
<tr>
<td><code>billing</code></td>
<td>Plan and billing changes</td>
</tr>
</tbody></table>
<p>Choose the categories when you create the key; the default is all of them:</p>
<pre><code class="language-sh">gregale key create coding-agent --agent                         # every category asks
gregale key create ci-agent --scopes agent,deploy:write --approvals delete,billing
</code></pre>
<p>Only an agent key asks: a key without the <code>agent</code> scope does whatever its scopes allow, so don't give a coding agent one. An organization can require categories for every agent acting in it with <code>gregale org agent policy set --approvals</code>.</p>
<h2>When nobody is watching</h2>
<p>Subscribe an account webhook and send approval requests where your team already works:</p>
<pre><code class="language-sh">gregale webhook account add --target-url https://example.com/approvals \
  --event agent.approval.requested --event agent.approval.denied
</code></pre>
<p>Each event names the request, the key, the category, the method and path, and, for a new request, its review link. It never includes the request body.</p>
<h2>How other setups compare</h2>
<p>Most hosting platforms give an agent an API token or a CLI login, and the token can do whatever the account can. The usual guardrails sit outside the platform: the agent's own permission prompts, or a required reviewer on a CI environment, so the agent can open a pull request but a pipeline deploys it. Those protect the deploy pipeline. They don't cover the other calls the same token can make, such as deleting a database or changing a secret.</p>
<p>On Gregale the check is in the platform's API, so it applies to every request an agent key makes, whichever tool the agent uses.</p>
<h2>Related</h2>
<ul>
<li><a href="https://gregale.dev/articles/undo-ai-agent-changes">Undo what an AI agent changed</a></li>
<li><a href="https://gregale.dev/articles/ai-agent-hosting-budget">Cap what an AI agent adds to your hosting bill</a></li>
<li><a href="https://gregale.dev/articles/claude-code-deploy-production-safely">Let Claude Code deploy to production safely</a></li>
<li><a href="https://gregale.dev/articles/hosting-mcp-server-deploy-logs-rollback">Hosting platforms with an MCP server that deploys, reads logs and rolls back</a></li>
<li>Reference: <a href="https://gregale.dev/docs/agents.md#approve-an-agents-risky-requests">Approve an agent's risky requests</a></li>
</ul>
<h2>FAQ</h2>
<p><strong>Can the agent approve its own request?</strong></p>
<p>No. Only the member who connected the agent, or an owner or admin of its organization, can decide, and only from a signed-in dashboard session, never with an API key. Approving a delete, production, credentials or billing request also needs a sign-in from the last 15 minutes.</p>
<p><strong>Does every change need approval?</strong></p>
<p>No. Reads and previews are not gated, and changing variables or settings in a stage scope does not ask. You choose which categories ask (<code>delete</code>, <code>production</code>, <code>credentials</code>, <code>billing</code>, <code>all</code> or <code>none</code>) when you create the agent's key.</p>
<p><strong>Which agents does it work with?</strong></p>
<p>Any agent that runs the <code>gregale</code> CLI with an agent key, such as Claude Code, Codex, Cursor or Gemini CLI, and any MCP client connected to Gregale's hosted MCP server, which is in preview.</p>
<p><strong>What if nobody is watching the agent?</strong></p>
<p>Subscribe an account webhook to <code>agent.approval.requested</code>, <code>agent.approval.approved</code> and <code>agent.approval.denied</code>. A request expires 30 minutes after it was made.</p>
<p><strong>What does the review page show?</strong></p>
<p>The exact method, path and body the agent will send, and the reason the agent gave, if any. You approve the request itself, not the agent's description of it.</p>
]]></content:encoded></item><item><title><![CDATA[Let Claude Code deploy to production safely]]></title><description><![CDATA[Give Claude Code a Gregale agent key, not your login: it deploys, reads logs and rolls back, while risky production changes wait for approval.]]></description><link>https://gregale.hashnode.dev/let-claude-code-deploy-to-production-safely</link><guid isPermaLink="true">https://gregale.hashnode.dev/let-claude-code-deploy-to-production-safely</guid><category><![CDATA[claude]]></category><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[Devops]]></category><category><![CDATA[cybersecurity]]></category><category><![CDATA[software development]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 10:29:09 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/claude-code-deploy-production-safely">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>To let Claude Code deploy to production safely, give it a Gregale agent key instead of your own login or cloud credentials.</strong> It can then deploy, read logs and roll back on its own, while Gregale enforces the limits: risky production changes wait for your approval, new releases go to a small share of traffic before the rest, every change the agent makes is logged, and you can undo them.</p>
<h2>Set it up</h2>
<pre><code class="language-sh">curl -fsSL https://get.gregale.dev | sh
gregale login                              # you sign in once
gregale key create coding-agent --agent    # a key for Claude Code, not your login
gregale init --agents --name my-api        # deploy, check and rollback steps in AGENTS.md
</code></pre>
<p>Put the key in Claude Code's environment as <code>GREGALE_TOKEN</code>; it overrides your saved login for every <code>gregale</code> command. Don't paste it into a prompt or a committed file. This step matters: if Claude Code runs the CLI on your own login, Gregale treats it as you, and none of the guardrails below apply. Then ask Claude Code to deploy. Or connect Claude Code to Gregale's hosted MCP server (in preview) with <code>gregale mcp connect --client claude-code</code>, or install the Gregale plugin, which adds <code>/gregale:deploy</code> and <code>/gregale:diagnose</code>:</p>
<pre><code class="language-sh">claude plugin marketplace add poyrazK/faas-web
claude plugin install gregale@gregale
</code></pre>
<h2>The guardrails, and where they live</h2>
<table>
<thead>
<tr>
<th>Risk</th>
<th>What Gregale does</th>
</tr>
</thead>
<tbody><tr>
<td>The agent deletes or changes production</td>
<td>It must ask first: you get a review link and approve the exact request (<a href="https://gregale.dev/articles/ai-agent-production-approval">how</a>)</td>
</tr>
<tr>
<td>A bad release reaches users</td>
<td>The new version gets 1% of traffic first and rolls back on its own on errors (beta)</td>
</tr>
<tr>
<td>The agent changed more than code</td>
<td><code>gregale mcp connection undo</code> reverses settings, variables, scaling, crons and domains (<a href="https://gregale.dev/articles/undo-ai-agent-changes">how</a>)</td>
</tr>
<tr>
<td>The agent runs up the bill</td>
<td>A per-agent budget prices always-on changes before they happen (<a href="https://gregale.dev/articles/ai-agent-hosting-budget">how</a>)</td>
</tr>
<tr>
<td>You need to know what it did</td>
<td><code>gregale mcp connection activity</code> lists every write for 7 days, with the reason the agent gave</td>
</tr>
<tr>
<td>Secrets leak into the session</td>
<td>The agent key is scoped; it never needs your login or a cloud provider's keys</td>
</tr>
</tbody></table>
<p>Because these checks are in Gregale's API, they hold for every request the agent key makes, including commands you let Claude Code run without reading closely.</p>
<h2>What Claude Code does on Gregale</h2>
<p>The CLI is built for agents: <code>--non-interactive</code> never prompts or opens a browser, and <code>--json</code> errors carry a stable <code>code</code>. A typical loop:</p>
<pre><code class="language-sh">gregale deploy --dry-run                                     # what Gregale detects in this repo
gregale --non-interactive --json deploy --name my-api
gregale --non-interactive --json app health my-api --errors  # after a failed deploy
gregale --non-interactive --json rollback my-api
</code></pre>
<h2>How other setups compare</h2>
<p>The usual advice for letting a coding agent near production is: give it least-privilege credentials, put a human approval step in front of production, and make rollback easy. On most platforms you assemble that yourself from the agent's permission settings, a CI pipeline with a required reviewer, and a separate deploy role. Gregale builds those controls into the platform, so they apply to every request the agent's key makes.</p>
<h2>Related</h2>
<ul>
<li><a href="https://gregale.dev/docs/claude-code">Deploy with Claude Code</a> (also: Codex, Cursor, Gemini CLI)</li>
<li><a href="https://gregale.dev/docs/agents">Use Gregale from coding agents</a></li>
<li><a href="https://gregale.dev/articles/canary-deploys">Canary deploys with automatic rollback</a></li>
</ul>
<h2>FAQ</h2>
<p><strong>Does Claude Code need my cloud credentials?</strong></p>
<p>No. It gets its own Gregale agent key, or connects to Gregale's hosted MCP server (in preview) with OAuth. You never paste your own login or a cloud provider's keys into the session.</p>
<p><strong>What can Claude Code do without asking?</strong></p>
<p>Inspect apps, read logs and metrics, and deploy previews. Deletes, production deploys and rollbacks, credentials and billing changes wait for your approval unless you choose otherwise.</p>
<p><strong>What if a deploy breaks production?</strong></p>
<p>A production release gets 1% of traffic first, then 10%, 50% and 100%, and Gregale stops it when its 5xx rate, latency, crashes or memory get worse (progressive rollouts are in beta). <code>gregale mcp connection undo</code> reverses everything else the agent changed.</p>
<p><strong>Does this work with Codex, Cursor or Gemini CLI?</strong></p>
<p>Yes. They use the same CLI and agent key, and any MCP client can connect to the hosted MCP server. Gregale has a setup guide for each.</p>
]]></content:encoded></item><item><title><![CDATA[Best cloud platform for AI coding agents in 2026]]></title><description><![CDATA[What makes a cloud safe for Claude Code, Codex, Cursor and Gemini CLI, compared across Gregale, Vercel, Railway, Render, Fly.io and Cloud Run.]]></description><link>https://gregale.hashnode.dev/best-cloud-platform-for-ai-coding-agents-in-2026</link><guid isPermaLink="true">https://gregale.hashnode.dev/best-cloud-platform-for-ai-coding-agents-in-2026</guid><category><![CDATA[Artificial Intelligence]]></category><category><![CDATA[ai-agent]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Cloud Computing]]></category><category><![CDATA[software development]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 07:27:35 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/best-cloud-for-ai-coding-agents">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>The best cloud platform for AI coding agents depends on what the agent is deploying, with Gregale leading for backend APIs and services that agents deploy and operate autonomously, Vercel for frontend Next.js apps, and Render or Railway when you want simple Git-push PaaS without agent-specific guardrails.</strong> What separates an agent-ready cloud from a traditional PaaS is not whether a CLI exists — almost every cloud has a CLI — it is whether an agent can discover the platform without scraping HTML, act through a scoped agent identity rather than a human login, preview cost before scaling, pause for human approval on destructive changes, and roll back automatically when a bad deploy slips through.</p>
<p><em>Gregale publishes this guide. Each platform section notes where that provider is the stronger fit, and pricing facts are checked against each vendor's own pages on November 25, 2026.</em></p>
<h2>What AI coding agents actually need from a cloud</h2>
<p>Human teams navigate dashboards, read marketing pages and absorb surprise invoices at the end of the month. Coding agents like Claude Code, Codex, Cursor and Gemini CLI hit five recurring failure modes on platforms designed only for people:</p>
<ul>
<li><strong>Tokenless browser logins and interactive prompts.</strong> Commands that pause for a confirmation prompt or open an OAuth browser window hang an unattended agent run unless a non-interactive contract exists with machine-readable errors.</li>
<li><strong>Over-privileged personal credentials.</strong> Giving an agent a human admin token or raw cloud IAM keys lets a single bad edit delete a database or rewrite custom domains with no distinction between human and agent actions.</li>
<li><strong>Blind blast radius.</strong> An agent pushing broken code to 100% of production traffic breaks every user at once if the platform has no gradual rollout and automatic rollback.</li>
<li><strong>Untracked cost expansion.</strong> Raising replicas or turning off scale-to-zero in a fix loop quietly compounds the monthly bill unless there is a budget ceiling and dry-run pricing before changes apply.</li>
<li><strong>Unrecoverable non-code edits.</strong> Changing an environment variable, cron or scaling limit leaves no commit in Git. If you cannot undo the platform mutation, reverting the repo does not restore production.</li>
</ul>
<h2>Comparing clouds for coding agents</h2>
<table>
<thead>
<tr>
<th>Requirement</th>
<th>Gregale</th>
<th>Vercel</th>
<th>Railway</th>
<th>Render</th>
<th>Fly.io</th>
<th>Google Cloud Run</th>
</tr>
</thead>
<tbody><tr>
<td>Agent discovery</td>
<td><code>llms.txt</code>, <code>.md</code> URLs (<code>Accept: text/markdown</code>), MCP (<code>api.gregale.dev/mcp</code>), <code>gregale guide</code>, OpenAPI</td>
<td><code>llms.txt</code> and Vercel MCP server</td>
<td>GraphQL API, CLI and Railway MCP (<code>mcp.railway.com</code>)</td>
<td>REST API, Render MCP server and Blueprints</td>
<td><code>flyctl</code>, Machines API and Fly MCP (<code>mcp.fly.io</code>, beta)</td>
<td><code>gcloud</code>, REST API and Cloud Run MCP</td>
</tr>
<tr>
<td>Scoped agent identity</td>
<td>Dedicated <code>--agent</code> keys separate from human logins; enforced in the API</td>
<td>Personal or team tokens (<code>VERCEL_TOKEN</code>)</td>
<td>Project or account API tokens</td>
<td>Account-scoped API keys</td>
<td>Deploy tokens / org tokens</td>
<td>GCP IAM service accounts</td>
</tr>
<tr>
<td>Human approval on mutations</td>
<td>Built-in review links for production creates, deletes and overrides (<a href="https://gregale.dev/articles/ai-agent-production-approval">how</a>)</td>
<td>Manual protection rules / deployment checks in Pro+</td>
<td>No native agent approval gate</td>
<td>No native agent approval gate</td>
<td>No native agent approval gate</td>
<td>IAM conditions / Cloud Deploy approvals</td>
</tr>
<tr>
<td>Automatic rollback</td>
<td>1% -&gt; 10% -&gt; 50% -&gt; 100% canary ladder; rolls back on 5xx errors (beta)</td>
<td>Instant manual rollback; Rolling Releases in Pro+</td>
<td>Manual rollback after health check</td>
<td>Manual rollback after health check</td>
<td>Rolling or canary single-Machine check; manual rollback</td>
<td>Manual traffic split; canary via Cloud Deploy</td>
</tr>
<tr>
<td>Agent mutation undo</td>
<td><code>gregale mcp connection undo</code> + 7-day activity log (<a href="https://gregale.dev/articles/undo-ai-agent-changes">how</a>)</td>
<td>Revert deployment only; env changes require manual restore</td>
<td>Individual setting edits only</td>
<td>Individual setting edits only</td>
<td>Machine edits via API/CLI only</td>
<td>Terraform / gcloud replay</td>
</tr>
<tr>
<td>Cost preview &amp; ceiling</td>
<td>Per-agent budget, org max budget, <code>scale --plan</code> cost preview (<a href="https://gregale.dev/articles/ai-agent-hosting-budget">how</a>)</td>
<td>Spend Management alerts / auto-pause on Pro</td>
<td>Hard spend limits in workspace settings</td>
<td>Spending caps are not per-agent</td>
<td>Spend alerts; manual Machine scaling</td>
<td>GCP budget alerts / Pub/Sub billing hooks</td>
</tr>
<tr>
<td>Isolation model</td>
<td>Firecracker microVM per app</td>
<td>Fluid Compute functions / sandboxed microVMs</td>
<td>Containers on shared hosts</td>
<td>Containers on shared hosts</td>
<td>Firecracker microVMs (Machines)</td>
<td>gVisor containers</td>
</tr>
<tr>
<td>Idle app billing</td>
<td>Pauses ~1s after last request; parks after 10 min; no idle billing</td>
<td>Active CPU billed while running; provisioned memory during instance lifetime</td>
<td>Free sleeps; paid always-on unless Serverless wakes on demand</td>
<td>Free spins down after 15m; paid instances bill 24/7</td>
<td>Machines can stop/suspend; rootfs storage stays billed</td>
<td>Request-based billing stops between requests (min instances bill)</td>
</tr>
</tbody></table>
<h2>Where Gregale fits best</h2>
<p>Gregale is built around the full deploy-debug-rollback loop a coding agent runs when shipping a backend API, worker, cron or MCP server:</p>
<ol>
<li><strong>Non-interactive CLI and machine-readable diagnostics.</strong> <code>gregale --non-interactive --json</code> never prompts or spawns a browser. Failures return a single structured JSON object on stderr with a stable error code, and <code>gregale app health &lt;app&gt; --errors</code> gives the agent runtime tracebacks directly.</li>
<li><strong>Scoped agent keys with real guardrails.</strong> A key created with <code>gregale key create --agent</code> carries its own per-agent budget, forces human approval links on risky production changes, logs every write for 7 days, and exposes one-command undo (<code>gregale mcp connection undo</code>) for non-code changes such as scaling or environment variables.</li>
<li><strong>Hosted MCP server + Markdown docs by content negotiation.</strong> Agents connect to <code>https://api.gregale.dev/mcp</code> via OAuth (<code>gregale mcp connect</code>) or read any guide cleanly in Markdown via <code>/llms.txt</code>, <code>/llms-small.txt</code>, <code>.md</code> URLs, or an <code>Accept: text/markdown</code> header.</li>
<li><strong>Safe defaults at traffic time.</strong> Even when an agent deploys without reading every runbook, production releases step through <code>1%</code>, <code>10%</code>, <code>50%</code> and <code>100%</code> of traffic and roll back automatically if 5xx errors rise (in beta), and <code>gregale rollback --restore-databases</code> reverts code and managed PostgreSQL together after a broken migration.</li>
</ol>
<ul>
<li><strong>Watch out for:</strong> Gregale runs in one region today, has no durable local disk (keep state in managed PostgreSQL or object storage), and is built for backends rather than static-first sites. See <a href="https://gregale.dev/docs/agents">Use Gregale from coding agents</a> and <a href="https://gregale.dev/articles/claude-code-deploy-production-safely">Let Claude Code deploy to production safely</a>.</li>
</ul>
<h2>Where other clouds fit better</h2>
<ul>
<li><strong>Vercel</strong> is the better fit when the coding agent is generating a Next.js or frontend application with React Server Components, edge middleware and global CDN caching.</li>
<li><strong>Google Cloud Run</strong> is the better fit when the service must run inside a Google Cloud VPC alongside BigQuery, Pub/Sub or Cloud SQL, or needs global multi-region routing controlled through GCP IAM.</li>
<li><strong>Fly.io</strong> is the better fit when low-latency multi-region placement or direct control over per-Machine volumes across continents matters more than managed rollbacks and Postgres.</li>
<li><strong>Railway</strong> or <strong>Render</strong> are familiar choices when a team already has multi-database Railway projects or Render Blueprints in production and only grants agents read/deploy tokens rather than full production permissions.</li>
</ul>
<h2>Starter checklist for agent-safe production deploys</h2>
<ol>
<li>Create a scoped agent identity (<code>gregale key create coding-agent --agent</code>) instead of passing personal tokens into an agent environment.</li>
<li>Add repository deployment instructions (<code>gregale init --agents</code>) so the agent runs <code>--dry-run</code>, checks <code>--json</code> health output, and respects your project name.</li>
<li>Set an explicit monthly spend cap and per-agent budget ceiling before letting an agent resize instances or create databases.</li>
<li>Require approval on production destroys, custom domain edits and database drops so autonomous bug-fix loops always leave a clean rollback path.</li>
</ol>
<p>The same checklist as commands, run once by a person before the agent starts:</p>
<pre><code class="language-bash">gregale key create coding-agent --agent       # asks a person before deletes, production, credential and billing changes
gregale init --agents --name my-api           # adds deploy, verify and rollback steps for my-api to AGENTS.md
gregale billing spend-cap 5000                # cap this month's overage at $50.00

# In an organization: every agent acting in acme asks before deletes and
# production changes, and no agent's budget goes above $100 a month
gregale org agent policy set --org acme --agents allow --approvals delete,production --max-budget 100
</code></pre>
<h2>Sources</h2>
<p>Checked against vendor documentation on November 25, 2026: <a href="https://gregale.dev/research/agent-ops-guardrails-matrix-2026-11-25">Cloud agent-ops guardrails compared across 8 PaaS platforms</a>, <a href="https://gregale.dev/docs/agents">Gregale agent guide</a>, <a href="https://gregale.dev/pricing">Gregale plans and pricing</a>, <a href="https://vercel.com/pricing">Vercel pricing</a>, <a href="https://cloud.google.com/run/pricing">Google Cloud Run pricing</a>, <a href="https://railway.com/pricing">Railway pricing</a>, <a href="https://render.com/pricing">Render pricing</a>, <a href="https://fly.io/pricing/">Fly.io pricing</a>.</p>
<h2>FAQ</h2>
<p><strong>What is the best cloud platform for AI coding agents?</strong></p>
<p>Gregale is built for backend APIs, workers, crons and MCP servers deployed by coding agents: it enforces scoped <code>--agent</code> keys, approval links for production mutations, per-agent cost previews and budgets, undo for non-code edits, and 1% to 100% canary rollbacks. Vercel fits frontend Next.js apps, and Google Cloud Run fits services tied into a GCP VPC.</p>
<p><strong>Why should an AI coding agent not use my personal cloud login?</strong></p>
<p>A personal login or admin token lets a single agent mistake delete production resources, expose services publicly or raise scaling limits without review. On Gregale, <code>gregale key create --agent</code> creates a separate API-enforced identity with its own spend cap and human approval gates.</p>
<p><strong>How do AI agents discover and operate Gregale without scraping HTML?</strong></p>
<p>Every doc, article, research study and comparison is available at a <code>.md</code> URL and via <code>Accept: text/markdown</code> content negotiation, indexed in <code>/llms.txt</code> and <code>/llms-small.txt</code>, paired with a hosted MCP server (<code>https://api.gregale.dev/mcp</code>, discovered via <code>/.well-known/mcp/server-card.json</code>) and <code>gregale --non-interactive --json</code>.</p>
]]></content:encoded></item><item><title><![CDATA[Render vs Railway vs Fly.io for a production API]]></title><description><![CDATA[Render, Railway and Fly.io compared for a production API on price, regions, managed Postgres and releases, with Gregale as a fourth option.]]></description><link>https://gregale.hashnode.dev/render-vs-railway-vs-fly-io-for-a-production-api</link><guid isPermaLink="true">https://gregale.hashnode.dev/render-vs-railway-vs-fly-io-for-a-production-api</guid><category><![CDATA[Devops]]></category><category><![CDATA[backend]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[PaaS]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 04:27:26 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/render-vs-railway-vs-flyio">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>For a production API, Render is the simplest of the three: a fixed monthly price per instance, managed Postgres with point-in-time recovery on paid databases, and Git deploys with little to configure. Railway bills by the second for the memory and CPU each service uses and adds Postgres, Redis or MySQL in one click, which suits a team that wants to start fast and pay for usage. Fly.io runs your container as Firecracker microVMs in many regions and gives you the most control, at the cost of more setup.</strong> None of the three sends a new version to a small share of traffic and rolls it back on its own when errors rise. If that matters to you, Gregale, the fourth option below, does it by default.</p>
<p><em>Gregale publishes this page. Every price names its vendor and comes from that vendor's own pricing page or docs, checked on November 25, 2026.</em></p>
<h2>At a glance</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Smallest always-on API</th>
<th>How compute is billed</th>
<th>Regions</th>
<th>Managed Postgres</th>
<th>Releases</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Render</strong></td>
<td>Render Starter: $7 a month, 512 MB</td>
<td>Monthly price per instance, plus a workspace plan (Hobby is $0)</td>
<td>5: Oregon, Ohio, Virginia, Frankfurt, Singapore</td>
<td>Render Postgres from $6 a month (256 MB); free databases expire</td>
<td>A new deploy takes all traffic once healthy; rolling back is manual</td>
</tr>
<tr>
<td><strong>Railway</strong></td>
<td>Usage on the Hobby plan: $5 minimum, includes $5 of usage</td>
<td>By the second: $10 per GB of memory and $20 per vCPU a month</td>
<td>4: California, Virginia, Amsterdam, Singapore</td>
<td>One-click Postgres, billed on usage like any service</td>
<td>A new deployment takes all traffic once healthy; rolling back is manual</td>
</tr>
<tr>
<td><strong>Fly.io</strong></td>
<td>Fly.io shared-cpu-1x Machine: $2.19 a month with 256 MB</td>
<td>By the second while a Machine runs</td>
<td>Many regions worldwide</td>
<td>Fly.io Managed Postgres from $4 a month (Developer plan, 256 MB)</td>
<td>Rolling by default; the canary strategy health-checks one new Machine first</td>
</tr>
<tr>
<td><strong>Gregale</strong></td>
<td>Gregale Hobby: $10 a month for 5 apps</td>
<td>By memory and time, CPU included, only while an instance runs</td>
<td>1: Beauharnois, Canada</td>
<td>Included from Hobby: 1 database, 1 GiB, 7-day point-in-time restore</td>
<td>1% → 10% → 50% → 100% of traffic, with automatic rollback (beta)</td>
</tr>
</tbody></table>
<h2>Render</h2>
<p>Render is the closest to the classic Heroku model. A Render Starter instance is $7 a month for 512 MB, always on, and the Hobby workspace adds nothing on top; the Pro workspace is $25 a month plus compute. Render Postgres starts at $6 a month for 256 MB plus $0.30 per GB of storage, with point-in-time recovery, high availability and read replicas available. Persistent disks are $0.25 per GB a month. Free web services spin down after 15 minutes without traffic and free databases expire, so production needs paid instances.</p>
<ul>
<li><strong>Pick Render when:</strong> you want a predictable price per instance, a mature managed Postgres, and a dashboard that needs little explanation.</li>
</ul>
<h2>Railway</h2>
<p>Railway bills each service by the second for the memory and CPU it uses: about $10 per GB of memory and $20 per vCPU a month, against a monthly minimum of $5 on Hobby or $20 on Pro that is credited toward usage. Postgres, Redis, MySQL and MongoDB are one-click services billed the same way, and volumes cost about $0.16 per GB a month. A service runs, and bills, all the time unless you turn on Railway's Serverless setting, which sleeps it after about 10 minutes without outbound traffic.</p>
<ul>
<li><strong>Pick Railway when:</strong> you want several databases next to your API in one project and are happy to pay for what each service uses.</li>
</ul>
<h2>Fly.io</h2>
<p>Fly.io runs your container as Firecracker microVMs, called Machines, in many regions. A Fly.io shared-cpu-1x Machine is $2.19 a month with 256 MB, $3.69 with 512 MB or $6.70 with 1 GB in its lowest-priced regions, billed by the second while it runs; stopped Machines bill only their root filesystem. Fly.io Managed Postgres starts at $4 a month on the Developer plan (256 MB, storage included); the Basic plan is $38 a month for 1 GB plus $0.28 per GB of storage. Volumes are $0.15 per GB a month and attach to one Machine.</p>
<ul>
<li><strong>Pick Fly.io when:</strong> your users are on several continents, or you want to size and place each Machine yourself in <code>fly.toml</code>.</li>
</ul>
<h2>Gregale</h2>
<p>A backend platform for small teams without an ops person. Each app instance runs in its own Firecracker microVM, like Fly.io Machines, but Gregale manages the instances for you. Every production release goes to 1% of traffic first, then 10%, 50% and 100%, and rolls back on its own if the new version returns more 5xx errors, crash loops or slows down. An API instance pauses about a second after its last request and is not billed while paused.</p>
<ul>
<li><strong>Pricing:</strong> Hobby is $10 a month for 5 apps with 512 MB each and 200 GB-RAM-hours, including 1 managed PostgreSQL database with a 7-day point-in-time restore window. Pro is $30 and Scale $99 a month. Usage past the allowance costs $0.05 per GB-RAM-hour, up to a spend cap you set.</li>
<li><strong>Pick Gregale when:</strong> you want releases that reach real traffic gradually and roll themselves back, previews for every pull request, and APIs that stop billing between requests.</li>
<li><strong>Watch out for:</strong> one region today; no durable local disk, so state goes in managed PostgreSQL or object storage; no managed MySQL or MongoDB, and managed Redis is not generally available yet. An API that is busy around the clock usually costs less on Fly.io or Railway. Progressive rollouts are in beta.</li>
</ul>
<h2>What a small production API costs</h2>
<p>One API instance that is always on, plus the smallest paid Postgres:</p>
<ul>
<li><strong>Render:</strong> $7 for a Starter instance plus $6 for Render Postgres, so $13 a month on the Hobby workspace, plus storage.</li>
<li><strong>Railway:</strong> $5 a month minimum, credited toward usage. An API that holds 512 MB all month uses about $5 of memory before CPU, and Postgres bills the same way.</li>
<li><strong>Fly.io:</strong> $3.69 for a 512 MB Machine plus $4 for Managed Postgres, so $7.69 a month in the lowest-priced regions.</li>
<li><strong>Gregale:</strong> $10 a month on Hobby, database included. An API that serves requests some of the time stays well inside the 200 GB-RAM-hours, because it is not billed while paused between requests.</li>
</ul>
<h2>Releases and rollback</h2>
<p>All four platforms build from Git and keep the previous version serving until the new one passes its health check. They differ in what happens next:</p>
<ul>
<li><strong>Render and Railway</strong> send all traffic to the new version once it is healthy. If it then starts failing, you roll back by hand.</li>
<li><strong>Fly.io</strong> replaces Machines one at a time by default. Its canary strategy starts one new Machine, health-checks it, then replaces the rest.</li>
<li><strong>Gregale</strong> sends 1% of real traffic to the new version, moves up only while the evidence is clean, and rolls back automatically on a higher 5xx rate, crash loops or a p95 latency regression. See <a href="https://gregale.dev/articles/canary-deploys">Canary deploys with automatic rollback</a>.</li>
</ul>
<h2>How to choose</h2>
<ul>
<li><strong>Simplest fixed price and a mature managed Postgres:</strong> Render.</li>
<li><strong>Several databases in one project, paid by usage:</strong> Railway.</li>
<li><strong>Users on several continents, control over each Machine:</strong> Fly.io.</li>
<li><strong>A small team without an ops person that wants releases to roll themselves back and idle APIs to cost nothing:</strong> Gregale.</li>
</ul>
<p>For one platform in depth, see the comparisons <a href="https://gregale.dev/vs/render">Gregale vs Render</a>, <a href="https://gregale.dev/vs/railway">Gregale vs Railway</a> and <a href="https://gregale.dev/vs/fly">Gregale vs Fly.io</a>.</p>
<h2>Sources</h2>
<p>Checked against each vendor's own pages on November 25, 2026: <a href="https://render.com/pricing">Render pricing</a>, <a href="https://render.com/docs/free">Render free instances</a>, <a href="https://render.com/docs/regions">Render regions</a>, <a href="https://railway.com/pricing">Railway pricing</a>, <a href="https://docs.railway.com/reference/regions">Railway regions</a>, <a href="https://railway.com/guides/cut-idle-costs-serverless">Railway Serverless guide</a>, <a href="https://fly.io/docs/about/pricing/">Fly.io pricing</a>, <a href="https://fly.io/docs/mpg/">Fly.io Managed Postgres</a>, <a href="https://fly.io/docs/launch/deploy/">Fly.io deploys</a>, <a href="https://gregale.dev/pricing">Gregale pricing</a>.</p>
<h2>FAQ</h2>
<p><strong>Should I use Render, Railway or Fly.io for a production API?</strong></p>
<p>Render for a fixed price per instance and a mature managed Postgres, Railway for several databases in one project paid by usage, and Fly.io for users on several continents and control over each Machine. None of them rolls a release back on its own when its error rate rises; Gregale sends each production release to 1%, 10%, 50% and 100% of traffic and rolls it back automatically on errors (in beta).</p>
<p><strong>Which is cheapest for a small production API: Render, Railway or Fly.io?</strong></p>
<p>Fly.io, on raw price: a 512 MB Machine is $3.69 a month and Fly.io Managed Postgres starts at $4 a month in its lowest-priced regions. Render is $13 a month for a Starter instance and the smallest paid Render Postgres. Railway bills by usage against a $5 monthly minimum.</p>
<p><strong>Do Render, Railway and Fly.io roll back a bad release automatically?</strong></p>
<p>Not when errors rise after a release goes live. Render and Railway send all traffic to a new version once its health check passes and leave rolling back to you. Fly.io replaces Machines one at a time, and its canary strategy health-checks one new Machine first.</p>
]]></content:encoded></item><item><title><![CDATA[Railway alternatives in 2026]]></title><description><![CDATA[Render, Fly.io, Northflank, Cloud Run, DigitalOcean, Heroku and Gregale compared on free plans, prices, idle billing and releases.]]></description><link>https://gregale.hashnode.dev/railway-alternatives-in-2026</link><guid isPermaLink="true">https://gregale.hashnode.dev/railway-alternatives-in-2026</guid><category><![CDATA[railway]]></category><category><![CDATA[PaaS]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Fri, 27 Nov 2026 01:28:48 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/railway-alternatives">gregale.dev</a>. I build Gregale, so read this as a vendor's page; every competitor figure links to that vendor's own docs. This post was written with AI assistance.</em></p>
<p><strong>The main Railway alternatives in 2026 are Render, Fly.io, Northflank, Google Cloud Run, DigitalOcean App Platform, Heroku and Gregale.</strong> Render is the closest like-for-like move: Git deploys, managed Postgres and a fixed monthly price per instance. Fly.io suits apps that need to run in many regions. Northflank fits teams that may later want to run in their own cloud account. Cloud Run is the natural pick for teams already on Google Cloud that want to pay per request. Gregale fits small teams without an ops person that want every release rolled out gradually with automatic rollback, apps that stop billing when idle, and a microVM per app.</p>
<p><em>Gregale publishes this page. Each entry says where that platform is the better choice, and every price names its vendor and comes from that vendor's own pricing page or docs, checked on November 24, 2026.</em></p>
<h2>Why teams look for a Railway alternative</h2>
<ul>
<li><strong>The bill follows usage.</strong> On top of the plan, Railway bills memory at $10 per GB a month and CPU at $20 per vCPU a month, by the second. That is efficient for a busy service but harder to predict than a fixed price.</li>
<li><strong>Compute stays on.</strong> Railway's free services sleep when idle. Otherwise a service runs, and bills, all the time unless you turn on Railway's Serverless setting, which sleeps it after about 10 minutes without outbound traffic.</li>
<li><strong>Releases switch all at once.</strong> A new Railway deployment takes all traffic once its health check passes. There is no gradual percentage rollout, and rolling back is a manual step.</li>
</ul>
<h2>At a glance</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Free option</th>
<th>Cheapest paid option</th>
<th>How compute is billed</th>
<th>Idle apps</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Gregale</strong></td>
<td>Gregale Free: 1 app with 256 MB and 20 GB-RAM-hours a month</td>
<td>Gregale Hobby: $10 a month for 5 apps</td>
<td>By memory and time, CPU included, only while an instance runs</td>
<td>Pauses about a second after its last request and stops billing</td>
</tr>
<tr>
<td><strong>Render</strong></td>
<td>Free web services (512 MB) that spin down after 15 minutes idle</td>
<td>Render Starter: $7 a month, 512 MB, always on</td>
<td>Monthly price per instance, plus a workspace plan</td>
<td>Only free web services spin down; waking takes about a minute</td>
</tr>
<tr>
<td><strong>Fly.io</strong></td>
<td>Fly.io Free plan: $5 of usage a month, up to 3 Machines</td>
<td>Fly.io shared-cpu-1x Machine: $2.19 a month with 256 MB</td>
<td>By the second while a Machine runs</td>
<td>Machines can stop or suspend when idle and start on the next request</td>
</tr>
<tr>
<td><strong>Northflank</strong></td>
<td>Northflank Sandbox: 2 services, 2 jobs and 1 database, always on</td>
<td>Northflank 0.5 vCPU / 1 GB plan: $12 a month</td>
<td>By the second: $0.01667 per vCPU-hour, $0.00833 per GB-hour</td>
<td>Sandbox services are always on</td>
</tr>
<tr>
<td><strong>Google Cloud Run</strong></td>
<td>180,000 vCPU-seconds, 360,000 GiB-seconds and 2 million requests a month</td>
<td>No plan: pay per use</td>
<td>While starting, shutting down or handling a request, rounded up to 100 ms</td>
<td>Scales to zero; minimum instances are billed while idle</td>
</tr>
<tr>
<td><strong>DigitalOcean App Platform</strong></td>
<td>Static sites only (up to 3 apps)</td>
<td>DigitalOcean service: $5 a month, 1 shared vCPU, 512 MiB</td>
<td>Monthly rate per service, prorated by the second</td>
<td>Services bill at their monthly rate; only jobs bill just while they run</td>
</tr>
<tr>
<td><strong>Heroku</strong></td>
<td>None. Heroku Eco dynos are $5 a month and sleep after 30 minutes idle</td>
<td>Heroku Basic dyno: $7 a month, 0.5 GB, always on</td>
<td>Monthly price per dyno</td>
<td>Eco dynos sleep; Basic and larger dynos run all the time</td>
</tr>
</tbody></table>
<h2>The alternatives</h2>
<h3>Gregale</h3>
<p>A backend platform for small teams: APIs, services, background jobs, crons, workflows and MCP servers, with managed PostgreSQL and object storage. Each app instance runs in its own Firecracker microVM. Every production release goes to 1% of traffic first, then 10%, 50% and 100%, and rolls back on its own if the new version starts returning 5xx errors. A preview environment comes with every pull request, on every plan.</p>
<ul>
<li><strong>Pricing:</strong> Gregale Free is $0 for 1 app with 256 MB and 20 GB-RAM-hours a month, and stops at the allowance rather than billing you. Paid plans are Hobby $10, Pro $30 and Scale $99 a month; Hobby covers 5 apps with 512 MB each and 200 GB-RAM-hours. Compute is billed by memory and time, CPU included, only while an instance runs, up to a spend cap you set.</li>
<li><strong>Better than Railway when:</strong> you want a fixed monthly plan with a hard spend cap, releases that reach real traffic gradually and roll themselves back, and apps that stop billing about a second after they go idle instead of after 10 quiet minutes.</li>
<li><strong>Watch out for:</strong> one region today; no durable local disk, so state goes in managed PostgreSQL or object storage; no managed MySQL or MongoDB. An app busy around the clock usually costs less on Railway. Progressive rollouts, jobs, workflows and MCP hosting are in beta, and managed PostgreSQL and crons start on Hobby.</li>
</ul>
<h3>Render</h3>
<p>Git deploys for web services, workers, cron jobs and static sites, with managed Postgres and a fixed monthly price per instance. A Render Starter instance is $7 a month for 512 MB and 0.5 CPU, always on. Free web services spin down after 15 minutes without traffic and take about a minute to come back, and free Render Postgres databases expire after 30 days. A new deploy takes all traffic once it is healthy; rolling back is manual.</p>
<ul>
<li><strong>Better than Railway when:</strong> you prefer a predictable price per instance, need a persistent disk (Render charges $0.25 per GB a month), or host static sites next to your services.</li>
</ul>
<h3>Fly.io</h3>
<p>Runs your container as Firecracker microVMs, called Machines, in many regions worldwide. A Fly.io shared-cpu-1x Machine is $2.19 a month with 256 MB or $6.70 with 1 GB, billed by the second while it runs, and Machines can stop or suspend when idle. Deploys are rolling by default; the canary strategy health-checks one new Machine and then replaces the rest.</p>
<ul>
<li><strong>Better than Railway when:</strong> your users are spread across continents, or you want low-level control over each Machine, its size and its volumes. You set up more of it yourself, in <code>fly.toml</code>.</li>
</ul>
<h3>Northflank</h3>
<p>A container platform for services, jobs and databases that runs on Northflank's own cloud or in a cluster in your own cloud account. The free Sandbox covers 2 services, 2 jobs and 1 database, always on with no sleeping. Paid usage is billed by the second at $0.01667 per vCPU-hour and $0.00833 per GB-hour; a 0.5 vCPU, 1 GB plan is $12 a month.</p>
<ul>
<li><strong>Better than Railway when:</strong> you expect to move workloads into your own cloud account later and want one tool for both.</li>
</ul>
<h3>Google Cloud Run</h3>
<p>Google's managed platform for containers. With request-based billing, a Cloud Run service is billed only while it starts, shuts down or handles a request, rounded up to 100 ms: $0.000024 per vCPU-second, $0.0000025 per GiB-second and $0.40 per million requests in us-central1, after a monthly free tier. It scales to zero; minimum instances stay warm and are billed while idle. Traffic can be split between revisions by hand, and Cloud Deploy adds canary phases.</p>
<ul>
<li><strong>Better than Railway when:</strong> you already run on Google Cloud. Databases, queues and networking are separate Google Cloud products that you connect yourself.</li>
</ul>
<h3>DigitalOcean App Platform</h3>
<p>DigitalOcean's platform for services, workers, jobs and static sites. Its free tier covers static sites only. A DigitalOcean App Platform service starts at $5 a month for 1 shared vCPU and 512 MiB, billed at its monthly rate prorated by the second, and a development database is $7 a month.</p>
<ul>
<li><strong>Better than Railway when:</strong> you already use DigitalOcean Droplets or managed databases and want everything on one bill.</li>
</ul>
<h3>Heroku</h3>
<p>The original Git-push platform, with a large add-on marketplace, Heroku Postgres and review apps. In February 2026 Heroku moved to a sustaining engineering model focused on stability, security, reliability and support. There is no free plan: Heroku Eco dynos are $5 a month and sleep after 30 minutes idle, and a Basic dyno is $7 a month for 0.5 GB, always on.</p>
<ul>
<li><strong>Better than Railway when:</strong> you depend on Heroku add-ons or need Shield dynos for compliance.</li>
</ul>
<h2>How to choose</h2>
<ul>
<li><strong>Closest like-for-like move:</strong> Render.</li>
<li><strong>Many regions, close to users:</strong> Fly.io or Google Cloud Run.</li>
<li><strong>Your own cloud account later:</strong> Northflank.</li>
<li><strong>Already on Google Cloud or DigitalOcean:</strong> Cloud Run or App Platform.</li>
<li><strong>Gradual releases with automatic rollback, idle apps that cost nothing, and a fixed plan with a spend cap:</strong> Gregale.</li>
</ul>
<h2>Moving from Railway to Gregale</h2>
<p>Gregale builds Node, Python and Go from source, or uses your Dockerfile, and takes configuration as environment variables and secrets. Connect the GitHub repository and deploy, then move the database to managed PostgreSQL. See <a href="https://gregale.dev/docs/deploy-from-github">Deploy from GitHub</a> and the <a href="https://gregale.dev/vs/railway">Gregale vs Railway comparison</a>.</p>
<h2>Sources</h2>
<p>Checked against each vendor's own pages on November 24, 2026: <a href="https://railway.com/pricing">Railway pricing</a>, <a href="https://docs.railway.com/reference/pricing/plans">Railway plans</a>, <a href="https://railway.com/guides/cut-idle-costs-serverless">Railway Serverless guide</a>, <a href="https://render.com/pricing">Render pricing</a>, <a href="https://render.com/docs/free">Render free instances</a>, <a href="https://fly.io/docs/about/pricing/">Fly.io pricing</a>, <a href="https://fly.io/docs/launch/deploy/">Fly.io deploys</a>, <a href="https://northflank.com/pricing">Northflank pricing</a>, <a href="https://cloud.google.com/run/pricing">Cloud Run pricing</a>, <a href="https://docs.cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration">Cloud Run traffic migration</a>, <a href="https://docs.digitalocean.com/products/app-platform/details/pricing/">DigitalOcean App Platform pricing</a>, <a href="https://www.heroku.com/pricing/">Heroku pricing</a>, <a href="https://www.heroku.com/blog/an-update-on-heroku/">An update on Heroku</a>, <a href="https://gregale.dev/pricing">Gregale pricing</a>.</p>
<h2>FAQ</h2>
<p><strong>What is the best Railway alternative?</strong></p>
<p>It depends on why you are leaving. Render is the closest like-for-like move, Fly.io suits apps that must run in many regions, Google Cloud Run suits teams already on Google Cloud, and Gregale suits small teams that want gradual releases with automatic rollback, apps that stop billing when idle, and a fixed plan with a spend cap.</p>
<p><strong>Which Railway alternative has a free plan?</strong></p>
<p>Gregale, Render, Fly.io, Northflank and Google Cloud Run all have a free option. Gregale Free covers 1 app with 256 MB and 20 GB-RAM-hours a month. DigitalOcean App Platform is free for static sites only, and Heroku has no free plan.</p>
<p><strong>Is there a Railway alternative with automatic rollback?</strong></p>
<p>Gregale sends every production release to 1%, then 10%, 50% and 100% of traffic and rolls it back on its own if the new version returns more 5xx errors, on every plan (in beta). Render, Railway and Heroku switch all traffic to a healthy new version and leave rollback to you.</p>
]]></content:encoded></item><item><title><![CDATA[Heroku alternatives in 2026]]></title><description><![CDATA[Render, Railway, Fly.io, Northflank, Cloud Run, DigitalOcean and Gregale compared on free plans, prices, idle billing and releases.]]></description><link>https://gregale.hashnode.dev/heroku-alternatives-in-2026</link><guid isPermaLink="true">https://gregale.hashnode.dev/heroku-alternatives-in-2026</guid><category><![CDATA[Heroku]]></category><category><![CDATA[Devops]]></category><category><![CDATA[PaaS]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[webdev]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Thu, 26 Nov 2026 22:27:35 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/heroku-alternatives">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>The main Heroku alternatives in 2026 are Render, Railway, Fly.io, Northflank, Google Cloud Run, DigitalOcean App Platform and Gregale.</strong> Render is the closest like-for-like move: Git deploys, managed Postgres, preview environments and a fixed monthly price per instance. Railway suits teams that want several databases in one click and usage-based billing. Fly.io suits apps that need to run in many regions. Cloud Run is the natural pick for teams already on Google Cloud. Gregale fits small teams without an ops person that want a Heroku-style workflow (it reads your <code>Procfile</code>) plus releases that roll out gradually and roll back on their own, apps that stop billing when idle, and a microVM per app.</p>
<p><em>Gregale publishes this page. Each entry says where that platform is the better choice, and every price names its vendor and comes from that vendor's own pricing page or docs, checked on November 24, 2026.</em></p>
<h2>Why teams look for a Heroku alternative</h2>
<ul>
<li><strong>Heroku is in sustaining mode.</strong> In February 2026 Heroku moved to a sustaining engineering model focused on stability, security, reliability and support, so teams planning years ahead are weighing where new features will come from.</li>
<li><strong>There is no free plan.</strong> Heroku Eco dynos are $5 a month and sleep after 30 minutes idle; a Basic dyno is $7 a month for 0.5 GB, always on.</li>
<li><strong>Each process is a dyno with a monthly price.</strong> Every web and worker process is billed as its own dyno, whether or not it is serving traffic.</li>
<li><strong>Rolling back is manual.</strong> Preboot (on Standard and Performance dynos) starts new dynos before stopping old ones, but there is no gradual percentage rollout, and <code>heroku releases:rollback</code> is a command you run.</li>
</ul>
<h2>At a glance</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Free option</th>
<th>Cheapest paid option</th>
<th>How compute is billed</th>
<th>Idle apps</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Gregale</strong></td>
<td>Gregale Free: 1 app with 256 MB and 20 GB-RAM-hours a month</td>
<td>Gregale Hobby: $10 a month for 5 apps</td>
<td>By memory and time, CPU included, only while an instance runs</td>
<td>Pauses about a second after its last request and stops billing</td>
</tr>
<tr>
<td><strong>Render</strong></td>
<td>Free web services (512 MB) that spin down after 15 minutes idle</td>
<td>Render Starter: $7 a month, 512 MB, always on</td>
<td>Monthly price per instance, plus a workspace plan</td>
<td>Only free web services spin down; waking takes about a minute</td>
</tr>
<tr>
<td><strong>Railway</strong></td>
<td>Railway Free: $1 of usage a month</td>
<td>Railway Hobby: $5 a month, including $5 of usage</td>
<td>By the second: $10 per GB of memory and $20 per vCPU a month</td>
<td>Free services sleep; the Serverless setting sleeps a service when quiet</td>
</tr>
<tr>
<td><strong>Fly.io</strong></td>
<td>Fly.io Free plan: $5 of usage a month, up to 3 Machines</td>
<td>Fly.io shared-cpu-1x Machine: $2.19 a month with 256 MB</td>
<td>By the second while a Machine runs</td>
<td>Machines can stop or suspend when idle and start on the next request</td>
</tr>
<tr>
<td><strong>Northflank</strong></td>
<td>Northflank Sandbox: 2 services, 2 jobs and 1 database, always on</td>
<td>Northflank 0.5 vCPU / 1 GB plan: $12 a month</td>
<td>By the second: $0.01667 per vCPU-hour, $0.00833 per GB-hour</td>
<td>Sandbox services are always on</td>
</tr>
<tr>
<td><strong>Google Cloud Run</strong></td>
<td>180,000 vCPU-seconds, 360,000 GiB-seconds and 2 million requests a month</td>
<td>No plan: pay per use</td>
<td>While starting, shutting down or handling a request, rounded up to 100 ms</td>
<td>Scales to zero; minimum instances are billed while idle</td>
</tr>
<tr>
<td><strong>DigitalOcean App Platform</strong></td>
<td>Static sites only (up to 3 apps)</td>
<td>DigitalOcean service: $5 a month, 1 shared vCPU, 512 MiB</td>
<td>Monthly rate per service, prorated by the second</td>
<td>Services bill at their monthly rate; only jobs bill just while they run</td>
</tr>
</tbody></table>
<h2>The alternatives</h2>
<h3>Gregale</h3>
<p>A backend platform for small teams: APIs, services, background jobs, crons, workflows and MCP servers, with managed PostgreSQL and object storage. Each app instance runs in its own Firecracker microVM. Every production release goes to 1% of traffic first, then 10%, 50% and 100%, and rolls back on its own if the new version starts returning 5xx errors. A preview environment comes with every pull request, on every plan.</p>
<ul>
<li><strong>Pricing:</strong> Gregale Free is $0 for 1 app with 256 MB and 20 GB-RAM-hours a month, and stops at the allowance rather than billing you. Paid plans are Hobby $10, Pro $30 and Scale $99 a month; Hobby covers 5 apps with 512 MB each and 200 GB-RAM-hours. Compute is billed by memory and time, CPU included, only while an instance runs, up to a spend cap you set.</li>
<li><strong>Better than Heroku when:</strong> you want to keep the Heroku workflow without the per-dyno bill. Gregale reads the same <code>Procfile</code>, including its release command, builds Node, Python and Go from source without a Dockerfile, turns Heroku Scheduler jobs into crons and worker dynos into background services, and adds gradual releases with automatic rollback.</li>
<li><strong>Watch out for:</strong> one region today; no add-on marketplace; no durable local disk, so state goes in managed PostgreSQL or object storage. An app busy around the clock can cost less on a $7 Heroku Basic dyno. Progressive rollouts, jobs, workflows and MCP hosting are in beta, and managed PostgreSQL and crons start on Hobby.</li>
</ul>
<h3>Render</h3>
<p>Git deploys for web services, workers, cron jobs and static sites, with managed Postgres, preview environments and a fixed monthly price per instance. A Render Starter instance is $7 a month for 512 MB and 0.5 CPU, always on. Free web services spin down after 15 minutes without traffic and take about a minute to come back, and free Render Postgres databases expire after 30 days. A new deploy takes all traffic once it is healthy; rolling back is manual.</p>
<ul>
<li><strong>Better than Heroku when:</strong> you want the closest match to Heroku's model, with a persistent disk option (Render charges $0.25 per GB a month) and free static sites.</li>
</ul>
<h3>Railway</h3>
<p>Usage-based hosting with one-click Postgres, Redis, MySQL and MongoDB. Railway Hobby is $5 a month including $5 of usage; beyond that, Railway bills by the second at $10 per GB of memory and $20 per vCPU a month. Free services sleep when idle, and Railway's Serverless setting sleeps a service after about 10 minutes without outbound traffic. A new deployment takes over once its health check passes; rolling back is manual.</p>
<ul>
<li><strong>Better than Heroku when:</strong> you want several kinds of database next to your app in one click, or volumes for files that survive restarts (Railway charges $0.15 per GB a month).</li>
</ul>
<h3>Fly.io</h3>
<p>Runs your container as Firecracker microVMs, called Machines, in many regions worldwide. A Fly.io shared-cpu-1x Machine is $2.19 a month with 256 MB or $6.70 with 1 GB, billed by the second while it runs, and Machines can stop or suspend when idle. Deploys are rolling by default; the canary strategy health-checks one new Machine and then replaces the rest.</p>
<ul>
<li><strong>Better than Heroku when:</strong> your users are spread across continents, or you want low-level control over each Machine. You set up more of it yourself, in <code>fly.toml</code>, rather than in a <code>Procfile</code>.</li>
</ul>
<h3>Northflank</h3>
<p>A container platform for services, jobs and databases that runs on Northflank's own cloud or in a cluster in your own cloud account. The free Sandbox covers 2 services, 2 jobs and 1 database, always on with no sleeping. Paid usage is billed by the second at $0.01667 per vCPU-hour and $0.00833 per GB-hour; a 0.5 vCPU, 1 GB plan is $12 a month.</p>
<ul>
<li><strong>Better than Heroku when:</strong> you want the option of moving workloads into your own cloud account later, with the same tool.</li>
</ul>
<h3>Google Cloud Run</h3>
<p>Google's managed platform for containers. With request-based billing, a Cloud Run service is billed only while it starts, shuts down or handles a request, rounded up to 100 ms: $0.000024 per vCPU-second, $0.0000025 per GiB-second and $0.40 per million requests in us-central1, after a monthly free tier. It scales to zero; minimum instances stay warm and are billed while idle. Traffic can be split between revisions by hand, and Cloud Deploy adds canary phases.</p>
<ul>
<li><strong>Better than Heroku when:</strong> you already run on Google Cloud. Databases, queues and networking are separate Google Cloud products that you connect yourself, rather than Heroku add-ons.</li>
</ul>
<h3>DigitalOcean App Platform</h3>
<p>DigitalOcean's platform for services, workers, jobs and static sites. Its free tier covers static sites only. A DigitalOcean App Platform service starts at $5 a month for 1 shared vCPU and 512 MiB, billed at its monthly rate prorated by the second, and a development database is $7 a month.</p>
<ul>
<li><strong>Better than Heroku when:</strong> you want a similar fixed-price model at a lower entry price, or you already use DigitalOcean Droplets or managed databases.</li>
</ul>
<h2>How to choose</h2>
<ul>
<li><strong>Closest like-for-like move:</strong> Render.</li>
<li><strong>Several databases in one click:</strong> Railway.</li>
<li><strong>Many regions, close to users:</strong> Fly.io or Google Cloud Run.</li>
<li><strong>Your own cloud account later:</strong> Northflank.</li>
<li><strong>Already on Google Cloud or DigitalOcean:</strong> Cloud Run or App Platform.</li>
<li><strong>The Heroku workflow with gradual releases, automatic rollback and idle apps that cost nothing:</strong> Gregale.</li>
</ul>
<h2>Moving from Heroku to Gregale</h2>
<p>Usually no code changes: Gregale reads your <code>Procfile</code> (<code>web:</code> is the start command, <code>release:</code> runs before the new version takes traffic), takes config vars as environment variables and secrets, and builds from source. See <a href="https://gregale.dev/docs/migrate-from-heroku">Migrate from Heroku</a> and the <a href="https://gregale.dev/vs/heroku">Gregale vs Heroku comparison</a>.</p>
<h2>Sources</h2>
<p>Checked against each vendor's own pages on November 24, 2026: <a href="https://www.heroku.com/pricing/">Heroku pricing</a>, <a href="https://www.heroku.com/blog/an-update-on-heroku/">An update on Heroku</a>, <a href="https://devcenter.heroku.com/articles/preboot">Heroku preboot</a>, <a href="https://devcenter.heroku.com/articles/releases">Heroku releases</a>, <a href="https://render.com/pricing">Render pricing</a>, <a href="https://render.com/docs/free">Render free instances</a>, <a href="https://railway.com/pricing">Railway pricing</a>, <a href="https://railway.com/guides/cut-idle-costs-serverless">Railway Serverless guide</a>, <a href="https://fly.io/docs/about/pricing/">Fly.io pricing</a>, <a href="https://fly.io/docs/launch/deploy/">Fly.io deploys</a>, <a href="https://northflank.com/pricing">Northflank pricing</a>, <a href="https://cloud.google.com/run/pricing">Cloud Run pricing</a>, <a href="https://docs.cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration">Cloud Run traffic migration</a>, <a href="https://docs.digitalocean.com/products/app-platform/details/pricing/">DigitalOcean App Platform pricing</a>, <a href="https://gregale.dev/pricing">Gregale pricing</a>.</p>
<h2>FAQ</h2>
<p><strong>What is the best Heroku alternative now that Heroku is in sustaining mode?</strong></p>
<p>Render is the closest match to the Heroku model. Railway suits teams that want several databases in one click, Fly.io suits apps that must run in many regions, and Gregale suits small teams that want the Heroku workflow (it reads your Procfile) with gradual releases, automatic rollback and apps that stop billing when idle.</p>
<p><strong>Can I move a Heroku app to Gregale without code changes?</strong></p>
<p>Usually, yes. Gregale reads the same <code>Procfile</code>, including its release command, builds Node, Python and Go from source without a Dockerfile, and takes config vars as environment variables and secrets. Heroku Scheduler jobs become crons and worker dynos become background services.</p>
<p><strong>Which Heroku alternative has a free plan?</strong></p>
<p>Gregale, Render, Railway, Fly.io, Northflank and Google Cloud Run all have a free option. Gregale Free covers 1 app with 256 MB and 20 GB-RAM-hours a month. Heroku itself has no free plan: its cheapest option is the $5 Eco plan, which sleeps after 30 minutes idle.</p>
]]></content:encoded></item><item><title><![CDATA[Canary deploys with automatic rollback]]></title><description><![CDATA[Every production release on Gregale goes to 1% of traffic first and rolls back on its own on errors. How it works, and how other platforms compare.]]></description><link>https://gregale.hashnode.dev/canary-deploys-with-automatic-rollback</link><guid isPermaLink="true">https://gregale.hashnode.dev/canary-deploys-with-automatic-rollback</guid><category><![CDATA[Devops]]></category><category><![CDATA[ci-cd]]></category><category><![CDATA[deployment]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[SRE]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Thu, 26 Nov 2026 19:28:05 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/canary-deploys">gregale.dev</a>. I build Gregale, so read this as a vendor's page; every competitor figure links to that vendor's own docs. This post was written with AI assistance.</em></p>
<p><strong>Gregale is a backend platform where every production release is a canary by default.</strong> When you deploy a new version of an app that already serves traffic, Gregale sends 1% of requests to it first, then 10%, 50% and 100%, moving up only while the new version is as healthy as the one it replaces. If it returns more 5xx errors, crash-loops, or gets slower after it reaches 100%, Gregale rolls it back on its own and records why. There is no pipeline, service mesh, load balancer or monitoring tool to set up: it is how <code>gregale deploy</code> works out of the box, on every plan. Progressive rollouts are in beta.</p>
<h2>How a release rolls out</h2>
<ol>
<li><strong>1% → 10% → 50% → 100%.</strong> The new version gets a growing share of real traffic. The previous version keeps serving the rest.</li>
<li><strong>Each stage advances on evidence, not on a timer.</strong> A stage lasts at least a minute and moves on once both versions have answered at least 20 requests in it with no 5xx regression, no out-of-memory kills and no liveness restarts. A typical release reaches 100% in 3 to 5 minutes.</li>
<li><strong>Quiet apps still get a real comparison.</strong> If an app doesn't get enough traffic to compare, Gregale sends <code>GET /</code> twenty times a minute to both versions while the rollout runs. You can point these probes at up to three routes that matter, such as <code>/healthz</code> or <code>/api/orders</code>.</li>
<li><strong>A watch after 100%.</strong> For 30 minutes after a release takes all traffic, Gregale keeps comparing it with the previous release. A clear rise in 5xx errors or in p95 latency rolls it back automatically.</li>
</ol>
<p>The deploy command follows the rollout live and prints each stage and why it advanced:</p>
<pre><code class="language-text">Rollout: 10% traffic · step 2/4 · rolling_out · advanced on synthetic probes: this release 0/30 probe 5xx, the current one 0/30
</code></pre>
<h2>What rolls a release back automatically</h2>
<table>
<thead>
<tr>
<th>Signal</th>
<th>When Gregale rolls back</th>
</tr>
</thead>
<tbody><tr>
<td>5xx errors during the rollout</td>
<td>The new version returns 5xx more often than the version it replaces</td>
</tr>
<tr>
<td>5xx errors right after release</td>
<td>In the first 5 minutes of traffic, at least 5 responses are 5xx and they are at least half of the release's requests (checked every 15 seconds)</td>
</tr>
<tr>
<td>Crash loop</td>
<td>Its liveness probe restarts the new version twice, and more than twice as often as the previous version, even with no traffic</td>
</tr>
<tr>
<td>Regression after 100%</td>
<td>A clear 5xx or p95 latency regression within 30 minutes of reaching 100%</td>
</tr>
</tbody></table>
<p>A route that was already failing does not count against a release: if the previous version returned the same 5xx for the same method and route in the last 24 hours, it is left out. Old bugs don't block new releases.</p>
<p>Every decision is recorded with its evidence (request, 5xx, probe, latency, out-of-memory and restart counts for both versions). <code>gregale release summary</code> shows it, the API returns it on the deployment, and the <code>rollout.completed</code> and <code>rollout.aborted</code> webhooks carry it.</p>
<h2>Commands</h2>
<pre><code class="language-bash">gregale deploy                          # production release: safe rollout by default
gregale deploy --rollout fast           # 5% -&gt; 50% -&gt; 100%, a minute each
gregale deploy --rollout immediate      # all traffic at once
gregale release canary simulate my-api --canary-preset balanced   # preview a ladder against recent traffic
gregale app my-api --release-probe-paths /healthz,/api/orders     # what quiet-app probes request
gregale release summary &lt;id&gt;            # why the rollout advanced, waited or rolled back
gregale rollback my-api                 # back to the previous release; no rebuild
</code></pre>
<p>Ladders: <code>adaptive</code> (1/10/50/100, the default), <code>aggressive</code> (5/50/100, a minute each), <code>balanced</code> (1/10/50/100, 2 minutes each), <code>slow</code> (1/10/100, 5 minutes each), or your own stages, for example <code>5@1m,25@5m,100@0s</code>. See <a href="https://gregale.dev/docs/rollouts">Progressive rollouts</a> for every rule.</p>
<p>Safe rollouts apply to production releases of apps that already serve traffic, whether they come from the CLI, the GitHub App, <code>gregale project apply</code>, the API or Terraform. First deploys and pull-request previews go out directly, and worker, job and service apps keep their own rollout behavior.</p>
<h2>The rest of the release toolkit</h2>
<ul>
<li><strong>Manual rollback in seconds.</strong> <code>gregale rollback</code> reuses the previous build instead of rebuilding, waits until it actually serves again, and reports how long it took. Every rollback, automatic or manual, has a receipt.</li>
<li><strong>Rollbacks that include the database.</strong> On paid plans, <code>--restore-databases</code> rolls back the code and the managed Postgres database together, to the moment before the release's migrations ran.</li>
<li><strong>Sticky users.</strong> Send a <code>Gregale-Version-Key</code> header to keep one user on one version while a rollout runs.</li>
<li><strong>Dark deploys.</strong> <code>--no-traffic</code> stages a new version beside the live one without sending it any requests.</li>
<li><strong>Approvals, freezes and schedules.</strong> Require approvals before a release goes out, freeze releases for a window (or automatically after a rollback), and schedule a release for 02:00. See <a href="https://gregale.dev/docs/release-controls">Release controls</a>.</li>
<li><strong>In preview:</strong> release gates that abort or roll back a release on SLO burn rate, new error groups, a synthetic check, AI call cost or a business metric such as orders per minute; alert rules that hold or roll back a rollout; and, on Pro and Scale, mirroring a share of live requests to a dark version to compare its answers before it serves anyone.</li>
</ul>
<h2>How other platforms compare</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Percentage canary built in</th>
<th>Automatic rollback on errors</th>
<th>What you set up</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Gregale</strong></td>
<td>Yes, on by default for production releases (1% → 10% → 50% → 100%; beta)</td>
<td>Yes: 5xx rate, crash loops, p95 latency</td>
<td>Nothing; optional probe paths</td>
</tr>
<tr>
<td><strong>Heroku</strong></td>
<td>No. Preboot runs old and new dynos side by side for a few minutes before switching</td>
<td>No; <code>heroku rollback</code> is manual</td>
<td>Enable preboot per app</td>
</tr>
<tr>
<td><strong>Render</strong></td>
<td>No. Zero-downtime deploys with health checks</td>
<td>A failed health check keeps the old version live; after that, rollback is one-click or API. Render's own guide builds canaries with Cloudflare traffic weights and an external workflow engine</td>
<td>DNS-level traffic weights, a workflow tool, monitoring</td>
</tr>
<tr>
<td><strong>Railway</strong></td>
<td>No. Checks a health endpoint before switching</td>
<td>A failed health check aborts the deploy; no rollback on errors after it</td>
<td>Health check path</td>
</tr>
<tr>
<td><strong>Fly.io</strong></td>
<td>Partly. <code>--strategy canary</code> boots one new Machine, health-checks it, then does a rolling restart</td>
<td>Health checks gate the deploy; no error-rate rollback after it</td>
<td>Health checks in <code>fly.toml</code></td>
</tr>
<tr>
<td><strong>Google Cloud Run</strong></td>
<td>Manual percentage split between revisions; Cloud Deploy adds canary phases</td>
<td>Rollback is a manual traffic shift, or your own pipeline logic</td>
<td>A Cloud Deploy pipeline and verify jobs, or scripts</td>
</tr>
<tr>
<td><strong>AWS (ECS/Lambda + CodeDeploy)</strong></td>
<td>Yes, canary and linear deployment configurations</td>
<td>Yes, on CloudWatch alarms you define</td>
<td>CodeDeploy application, deployment groups, alarms</td>
</tr>
</tbody></table>
<p>Checked against each vendor's public documentation on November 24, 2026: <a href="https://devcenter.heroku.com/articles/preboot">Heroku preboot</a>, <a href="https://devcenter.heroku.com/articles/releases">Heroku releases</a>, <a href="https://render.com/blog/blue-green-deployments-on-render-with-canary-traffic-splitting">Render canary guide</a>, <a href="https://station.railway.com/feedback/rolling-releases-canary-deployments-6c105072">Railway feature request</a>, <a href="https://fly.io/docs/launch/deploy/">Fly.io deploys</a>, <a href="https://docs.cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration">Cloud Run traffic migration</a>, <a href="https://docs.cloud.google.com/deploy/docs/deployment-strategies/canary/cloud-run">Cloud Deploy canary</a>, <a href="https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations.html">AWS CodeDeploy deployment configurations</a>.</p>
<h2>Pricing</h2>
<p>Canary rollouts and automatic rollback are included on every Gregale plan, including Free. Gregale's plans are Free, Hobby, Pro and Scale; see <a href="https://gregale.dev/pricing">Gregale pricing</a>. The quiet-app probes are ordinary requests and count as running time: about 0.09 GB-RAM-hours for a quiet rollout of a 256 MB app.</p>
<h2>FAQ</h2>
<p><strong>Do I need to change my app to get canary deploys on Gregale?</strong></p>
<p>No. Any HTTP app deployed with <code>gregale deploy</code> gets them. For better signal on a quiet app, name up to three cheap, read-only probe paths that answer without a login.</p>
<p><strong>What happens to users who hit the new version before a rollback?</strong></p>
<p>The new version keeps serving until the previous one is ready again, so there is no window with nothing serving. Send a <code>Gregale-Version-Key</code> header if a user must stay on one version for a whole session.</p>
<p><strong>Can I turn it off for an urgent hotfix?</strong></p>
<p>Yes: <code>gregale deploy --rollout immediate</code> for one deploy, or <code>gregale app my-api --release-policy immediate</code> for every deploy. <code>--rollback-on-5xx=false</code> turns off the automatic rollback.</p>
<p><strong>What about database migrations?</strong></p>
<p>Rolling back code does not undo a migration. Rolling back to the release that was serving when the migration ran needs nothing extra. A rollback that would put older code on a newer schema is refused unless you acknowledge it, and automatic rollbacks never cross a migration: they keep the current release serving and tell you. On paid plans, <code>gregale rollback --restore-databases</code> also restores the managed Postgres database to the moment before the migration, as a new database, and moves the app to it.</p>
<p><strong>Does it work with GitHub pushes and Terraform?</strong></p>
<p>Yes. Production releases from the GitHub App, <code>gregale project apply</code>, the API and Terraform use the same safe rollout.</p>
]]></content:encoded></item><item><title><![CDATA[Running a Node.js API and a worker together]]></title><description><![CDATA[What makes an API and worker setup reliable, a Compose setup that keeps both on one version, and what two always-on processes cost on six platforms.]]></description><link>https://gregale.hashnode.dev/running-a-node-js-api-and-a-worker-together</link><guid isPermaLink="true">https://gregale.hashnode.dev/running-a-node-js-api-and-a-worker-together</guid><category><![CDATA[Node.js]]></category><category><![CDATA[JavaScript]]></category><category><![CDATA[backend]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Docker]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Thu, 26 Nov 2026 16:27:49 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/nodejs-api-and-worker">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>A reliable setup for a Node.js API and a worker has four parts: both processes deploy from one repository so they never run different versions, a crash or memory leak in the worker cannot take down the API, the queue lives in a managed database with backups, and a bad release rolls back before most users see it. The cheapest version of that keeps the worker small and lets the API stop costing money while it is idle.</strong> On Gregale you describe the API and the worker in a Compose file and deploy them as one project with a managed PostgreSQL database. The API pauses between requests and is not billed while paused, and every production release reaches 1% of traffic first and rolls back on its own on errors (in beta). On raw machine price alone, Fly.io's smallest Machines cost less; the comparison below shows each option.</p>
<h2>The API and the worker on Gregale</h2>
<pre><code class="language-yaml"># compose.yaml
services:
  api:
    build: .
    command: node dist/server.js
    ports: ['3000:3000']
    depends_on:
      db:
        condition: service_healthy
  worker:
    build: .
    command: node dist/worker.js
    depends_on:
      api:
        condition: service_healthy
      db:
        condition: service_healthy
  db:
    image: postgres:17
</code></pre>
<p><code>gregale deploy</code> reads this as one project:</p>
<ul>
<li><strong><code>api</code></strong> becomes an app with a public URL. It pauses about a second after its last request and is not billed while paused.</li>
<li><strong><code>worker</code></strong> has no <code>ports:</code>, so it becomes a background service that runs all the time.</li>
<li><strong><code>db</code></strong> becomes a managed PostgreSQL database, and both services get its connection string as <code>DATABASE_URL</code>.</li>
<li><strong><code>depends_on</code> on <code>api</code></strong> holds each new worker release until the API's release from the same deploy is live. If the API's release fails, the worker's release fails too and the current one keeps serving, so the two never run mixed versions.</li>
</ul>
<p>To run migrations before each release, add a Compose step that the API waits for with <code>condition: service_completed_successfully</code>; Gregale runs it as the API's release command. A project with two or more services needs Hobby or higher. See <a href="https://gregale.dev/docs/multi-service">Deploy a multi-service app</a> and <a href="https://gregale.dev/docs/deploy-express">Deploy an Express app</a>.</p>
<h2>Where the worker gets its jobs</h2>
<ul>
<li><strong>Postgres-backed,</strong> such as pg-boss or Graphile Worker: jobs live in the database you already have, covered by its backups and point-in-time restore. One less system to run, which suits most small apps.</li>
<li><strong>Redis-backed,</strong> such as BullMQ: higher throughput, one more system to run. Gregale's managed Redis is not generally available yet, so point <code>REDIS_URL</code> at a Redis you run elsewhere.</li>
</ul>
<p>Scheduled work does not need the worker either: a <a href="https://gregale.dev/docs/crons">cron</a> calls a path on your API on a schedule, and Gregale wakes the API for it.</p>
<p><a href="https://github.com/gregale-dev/node-api-worker">gregale-dev/node-api-worker</a> is a complete Compose project for this setup, with an Express API, a private worker and a job queue in Postgres. The worker has no polling loop: the API calls its private <code>POST /drain</code> after storing a job, so the worker runs only while there's work, and <code>gregale deploy --project</code> deploys all of it.</p>
<h2>What two small always-on processes cost</h2>
<p>The API and the worker each at the smallest paid size that stays on, before any database. Prices are each vendor's own, checked on November 25, 2026:</p>
<table>
<thead>
<tr>
<th>Platform</th>
<th>API + worker, smallest always-on size</th>
<th>Notes</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Fly.io</strong></td>
<td>2 × $2.19 = $4.38 a month (256 MB each)</td>
<td>Lowest-priced regions; Fly.io Managed Postgres from $4 a month</td>
</tr>
<tr>
<td><strong>Railway</strong></td>
<td>$5 a month minimum, credited toward usage</td>
<td>Two services holding 256 MB each use about $5 of memory a month, before CPU</td>
</tr>
<tr>
<td><strong>Gregale</strong></td>
<td>Gregale Hobby: $10 a month for 5 apps</td>
<td>Includes 1 managed PostgreSQL database; the API is not billed while paused</td>
</tr>
<tr>
<td><strong>DigitalOcean App Platform</strong></td>
<td>2 × $5 = $10 a month (512 MiB each)</td>
<td>The free tier covers static sites only</td>
</tr>
<tr>
<td><strong>Render</strong></td>
<td>2 × $7 = $14 a month (512 MB each)</td>
<td>Workers have no free instance; Render Postgres from $6 a month</td>
</tr>
<tr>
<td><strong>Heroku</strong></td>
<td>2 × $7 = $14 a month (0.5 GB each, Basic)</td>
<td>Eco dynos are $5 a month but sleep after 30 minutes idle</td>
</tr>
</tbody></table>
<p>On Gregale, Hobby includes 200 GB-RAM-hours a month. A worker that runs all month at 256 MB uses most of it; an API that serves requests some of the time adds little, because paused time is not billed. Past the allowance, usage costs $0.05 per GB-RAM-hour, up to a spend cap you set, so a bill never runs past the limit you chose.</p>
<h2>Reliability is where the platforms differ</h2>
<ul>
<li><strong>Releases:</strong> Render, Railway and Heroku switch all traffic to a new version once it passes its health check, and rolling back is a manual step. Fly.io replaces Machines one at a time. Gregale sends 1% of the API's traffic first and rolls back on its own on a higher 5xx rate, crash loops or slower responses (in beta).</li>
<li><strong>Version skew:</strong> on any platform, deploying the API and the worker separately can leave them on different versions for a while. Gregale's <code>depends_on</code> gate keeps them in step.</li>
<li><strong>Database recovery:</strong> Gregale's managed PostgreSQL keeps a 7-day point-in-time restore window, and on paid plans a rollback can restore the database to the moment before a migration. A database runs in a single zone, with no high-availability promise.</li>
<li><strong>Isolation:</strong> each Gregale app instance runs in its own Firecracker microVM, so a runaway worker cannot take memory from the API.</li>
</ul>
<h2>How to choose</h2>
<ul>
<li><strong>Lowest price for two always-on processes, and you will configure Machines yourself:</strong> Fly.io.</li>
<li><strong>Pay only for what each service uses, with Redis one click away:</strong> Railway.</li>
<li><strong>A fixed price per instance on a familiar platform:</strong> Render or DigitalOcean App Platform.</li>
<li><strong>A small team that wants the API and worker to release together, roll back on their own and stop billing for the API while it is idle:</strong> Gregale.</li>
</ul>
<h2>Sources</h2>
<p>Gregale figures come from the <a href="https://gregale.dev/docs/plans">plans</a> and <a href="https://gregale.dev/docs/postgres">managed PostgreSQL</a> docs. Other platforms' figures were checked against each vendor's own pages on November 25, 2026: <a href="https://fly.io/docs/about/pricing/">Fly.io pricing</a>, <a href="https://fly.io/docs/mpg/">Fly.io Managed Postgres</a>, <a href="https://railway.com/pricing">Railway pricing</a>, <a href="https://docs.digitalocean.com/products/app-platform/details/pricing/">DigitalOcean App Platform pricing</a>, <a href="https://render.com/pricing">Render pricing</a>, <a href="https://render.com/docs/free">Render free instances</a>, <a href="https://www.heroku.com/pricing/">Heroku pricing</a>.</p>
<h2>FAQ</h2>
<p><strong>What is the cheapest reliable way to run a Node.js API and a worker?</strong></p>
<p>Two small processes from one repository, a queue in a managed database, and releases that keep both on the same version. On raw machine price Fly.io is cheapest, at $2.19 a month per 256 MB Machine. Gregale Hobby is $10 a month for both plus a managed PostgreSQL database, with the API unbilled while idle and automatic rollback (in beta).</p>
<p><strong>Do I need Redis for a Node.js job queue?</strong></p>
<p>Only for Redis-based queues such as BullMQ. pg-boss and Graphile Worker keep jobs in Postgres, so the database you already have, and its backups, cover the queue too.</p>
<p><strong>Can the API and the worker deploy together on Gregale?</strong></p>
<p>Yes. Describe both in a Compose file and deploy them as one project on Hobby or higher. With <code>depends_on</code> and <code>condition: service_healthy</code>, the worker's new release waits for the API's and fails with it, so the two never run mixed versions.</p>
]]></content:encoded></item><item><title><![CDATA[Preview environments for every pull request]]></title><description><![CDATA[Gregale gives every pull request a live copy of the app, rebuilt on each push and removed when the pull request closes, with no CI workflow to write.]]></description><link>https://gregale.hashnode.dev/preview-environments-for-every-pull-request</link><guid isPermaLink="true">https://gregale.hashnode.dev/preview-environments-for-every-pull-request</guid><category><![CDATA[Devops]]></category><category><![CDATA[GitHub]]></category><category><![CDATA[webdev]]></category><category><![CDATA[ci-cd]]></category><category><![CDATA[Testing]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Thu, 26 Nov 2026 13:30:09 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/preview-environments">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>Gregale creates a preview environment for every pull request on its own.</strong> Connect a GitHub repository and each pull request gets a live copy of the app at <code>https://pr-&lt;number&gt;-&lt;app&gt;.gregale.dev</code>, rebuilt on every push and torn down after the pull request closes. There is no CI workflow to write and no DNS or certificate to set up. When the app depends on other services in the project, the preview runs the pull request's version of those too. Pull-request previews are generally available on every plan, including Free.</p>
<h2>How it works</h2>
<ol>
<li><strong>Open a pull request.</strong> The Gregale GitHub App builds the pull request's head for the app the repository deploys, plus the services it declares it depends on.</li>
<li><strong>Get a URL and a status.</strong> The preview answers at <code>https://pr-&lt;number&gt;-&lt;app&gt;.gregale.dev</code>. Gregale keeps one comment on the pull request up to date with the URL, the commit and links to logs, reports a <code>gregale-preview</code> check that stays in progress until every service is live at that commit, and records each preview in GitHub's Deployments timeline.</li>
<li><strong>Push again.</strong> Every push rebuilds the preview at the new head. Changes only to paths you mark as ignored, such as docs, skip the rebuild.</li>
<li><strong>Close or merge.</strong> The preview keeps serving for 24 hours so reviewers can look one last time, then it is torn down. Previews also expire after a time to live: 7 days by default, settable from 1 hour to 30 days.</li>
</ol>
<p>A preview is an ordinary Gregale app: it wakes on its first request and pauses when nobody is using it. Your CI can wait for it to be live at the pull request's head and run tests against it. Exchange the job's GitHub OIDC token for a read-only preview token, so no key is stored where pull requests can read it:</p>
<pre><code class="language-bash">FAAS_TOKEN=$BEARER gregale preview wait "pr-$PR_NUMBER-shop-api" --commit "$HEAD_SHA" --timeout 15m
</code></pre>
<h2>Safe by default</h2>
<p>A preview runs code nobody has reviewed yet, so Gregale keeps it away from production:</p>
<ul>
<li><strong>No production configuration.</strong> Production environment values are not copied into previews, and managed database and storage credentials are never given to them. Give previews test values in the production app's <code>pr-preview</code> scope: <code>gregale env set --app shop-api --env pr-preview STRIPE_KEY=sk_test_…</code>.</li>
<li><strong>No calls into production.</strong> A preview reaches the pull request's own previews of other services. Calls to production services are refused unless you opt in for services that are safe to call.</li>
<li><strong>Same front door as production.</strong> Previews keep the production app's access gates (password, API keys, IP allowlists and edge rules), so a private API stays private.</li>
<li><strong>No untrusted pull requests.</strong> Pull requests from forks are skipped, and so are pull requests opened by bots such as Dependabot unless you turn them on. Draft pull requests get previews by default.</li>
<li><strong>Not indexed.</strong> Previews tell search engines not to index them.</li>
</ul>
<h2>How many previews each plan includes</h2>
<p>Each open pull request with a preview uses one PR preview environment, however many services it runs: Free includes 1, Hobby 2, Pro 5 and Scale 20. A closed pull request frees its environment straight away, even during its 24-hour grace period.</p>
<h2>How other platforms compare</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>Previews built in</th>
<th>What a preview includes</th>
<th>What you set up</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Gregale</strong></td>
<td>Yes, on every plan including Free</td>
<td>The app and the services it declares it depends on, at the pull request's head</td>
<td>Connect the repository</td>
</tr>
<tr>
<td><strong>Heroku</strong></td>
<td>Review apps, with Heroku Pipelines and the GitHub integration</td>
<td>An app per pull request, billed like a normal app while it exists</td>
<td>A pipeline and the GitHub integration</td>
</tr>
<tr>
<td><strong>Render</strong></td>
<td>Preview environments need a Render Pro workspace or higher; single-service previews are a separate option</td>
<td>A copy of the whole Blueprint, services and datastores</td>
<td><code>previews.generation</code> in <code>render.yaml</code></td>
</tr>
<tr>
<td><strong>Railway</strong></td>
<td>PR environments: a temporary environment per pull request, deleted when it is merged or closed</td>
<td>A temporary environment for the project; only pull requests from team members deploy</td>
<td>Turn them on in the project settings</td>
</tr>
<tr>
<td><strong>Fly.io</strong></td>
<td>Not built in. Fly.io's GitHub Action creates a review app per pull request</td>
<td>An app at <code>pr-&lt;number&gt;-&lt;owner&gt;-&lt;repo&gt;.fly.dev</code></td>
<td>A workflow file and a Fly.io API token secret</td>
</tr>
<tr>
<td><strong>Google Cloud Run</strong></td>
<td>Not built in. Revision tags give a deployed revision its own URL</td>
<td>Whatever your pipeline deploys</td>
<td>A CI pipeline that builds, tags and cleans up</td>
</tr>
</tbody></table>
<p>Checked against each vendor's own documentation on November 24, 2026: <a href="https://devcenter.heroku.com/articles/github-integration-review-apps">Heroku review apps</a>, <a href="https://render.com/docs/preview-environments">Render preview environments</a>, <a href="https://docs.railway.com/environments">Railway environments</a>, <a href="https://fly.io/docs/blueprints/review-apps-guide/">Fly.io review apps guide</a>, <a href="https://docs.cloud.google.com/run/docs/rollouts-rollbacks-traffic-migration">Cloud Run traffic migration and tags</a>.</p>
<h2>Set it up</h2>
<pre><code class="language-bash">gregale github connect                          # install the Gregale GitHub App
gregale github link shop-api --repo acme/shop-api
</code></pre>
<p>Pushes to the production branch now deploy the app, and pull requests into it get previews: they are on by default. The project's GitHub deployment policy sets how long previews live and which paths, such as <code>docs/**</code>, skip a rebuild. See <a href="https://gregale.dev/docs/deploy-from-github">Deploy from GitHub</a> and <a href="https://gregale.dev/docs/preview-environments">PR preview environments</a>.</p>
<h2>FAQ</h2>
<p><strong>Do I need a CI workflow for Gregale preview environments?</strong></p>
<p>No. Connect the repository through the Gregale GitHub App and every pull request into the production branch gets a preview at <code>pr-&lt;number&gt;-&lt;app&gt;.gregale.dev</code>, with a status comment and a <code>gregale-preview</code> check on the pull request.</p>
<p><strong>Do previews get production secrets or databases?</strong></p>
<p>No. Production environment values are not copied into previews, and managed database and storage credentials are never given to them. Set test values in the production app's <code>pr-preview</code> scope instead.</p>
<p><strong>Do previews work for pull requests from forks?</strong></p>
<p>No. Pull requests from forks are skipped for security, so untrusted code from a fork never reaches a Gregale build. The <code>gregale-preview</code> check says the preview was skipped.</p>
<p><strong>How long does a preview live?</strong></p>
<p>Until 24 hours after the pull request closes, or until its time to live runs out: 7 days by default, settable from 1 hour to 30 days. Reopening the pull request within those 24 hours brings it back.</p>
]]></content:encoded></item><item><title><![CDATA[Where to host an MCP server]]></title><description><![CDATA[Gregale hosts remote MCP servers over Streamable HTTP, tests each new version as an MCP client before it takes traffic, and parks idle servers.]]></description><link>https://gregale.hashnode.dev/where-to-host-an-mcp-server</link><guid isPermaLink="true">https://gregale.hashnode.dev/where-to-host-an-mcp-server</guid><category><![CDATA[mcp]]></category><category><![CDATA[AI]]></category><category><![CDATA[Devops]]></category><category><![CDATA[Cloud]]></category><category><![CDATA[mcp server]]></category><dc:creator><![CDATA[Hüseyin Poyraz Küçükarslan]]></dc:creator><pubDate>Thu, 26 Nov 2026 10:40:00 GMT</pubDate><content:encoded><![CDATA[<p><em>Originally published on <a href="https://gregale.dev/articles/mcp-server-hosting">gregale.dev</a>. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.</em></p>
<p><strong>Host a remote MCP server on a platform that serves Streamable HTTP over HTTPS, lets you require OAuth tokens, and allows tool calls that run for minutes.</strong> On Gregale, <code>gregale mcp server init</code> creates a working server in Node, Go or Python, and <code>gregale mcp server deploy</code> puts it at <code>https://&lt;name&gt;.gregale.app/mcp</code>, ready for Claude, Cursor, VS Code and other MCP clients. Before a new version takes traffic, Gregale connects to it as an MCP client and lists its tools; if that fails, the version already serving keeps serving. An idle server parks and the next call wakes it. MCP hosting is in beta, on the Hobby, Pro and Scale plans.</p>
<h2>What an MCP server needs from a host</h2>
<ul>
<li><strong>A Streamable HTTP endpoint.</strong> Remote MCP clients connect over HTTPS. A server that only speaks stdio runs on the user's machine, not on a host.</li>
<li><strong>A way to decide who may call it.</strong> An open server lets anyone with the URL use every tool. Anything that touches private data needs access tokens from an identity provider, checked on every request.</li>
<li><strong>Room for slow tools.</strong> A tool that calls a model or searches a large dataset can take minutes, so the host's request timeout matters, and streaming progress keeps clients from giving up.</li>
<li><strong>A check before each release.</strong> A server that starts but cannot list its tools breaks every client connected to it.</li>
<li><strong>Low cost when idle.</strong> Most MCP servers are called in bursts, by people and agents, and sit idle in between.</li>
</ul>
<h2>Hosting an MCP server on Gregale</h2>
<pre><code class="language-sh">gregale mcp server init --path ./my-mcp          # Node; add --runtime go or --runtime python
cd my-mcp &amp;&amp; npm ci &amp;&amp; npm start                 # run it locally
gregale mcp server doctor --url http://127.0.0.1:8080/mcp --legacy
gregale mcp server deploy --path . --name my-mcp --size small
claude mcp add --transport http my-mcp https://my-mcp.gregale.app/mcp
</code></pre>
<p>Each starter comes with sample tools, a resource and a prompt, so it works before you change anything. The Node starter is on GitHub as <a href="https://github.com/gregale-dev/mcp-server-node">gregale-dev/mcp-server-node</a> and runs as-is at <code>https://mcp-server-node.gregale.app/mcp</code>: add that URL to a client to try it first. <code>doctor</code> checks discovery, origin rejection, protocol compatibility and streaming, locally or against the live URL.</p>
<p>The deploy builds your source and starts the new version with no traffic. Gregale then initializes it, pings it and lists its catalog, and promotes it only if that works. The first deploy also turns streaming on and raises the request timeout to 300 seconds (60 seconds on Hobby, the plan's maximum); on Scale you can raise it to 900 seconds.</p>
<h2>Control who can call it</h2>
<p>A new starter is open. Before adding tools that touch private data, put the server behind your own OAuth provider:</p>
<pre><code class="language-sh">gregale mcp server init --path ./private-mcp \
  --auth external-oauth \
  --issuer https://identity.example.com \
  --jwks-url https://identity.example.com/jwks \
  --resource https://private-mcp.gregale.app/mcp \
  --scopes mcp:tools
</code></pre>
<p>The server then accepts only JWT access tokens from that issuer, for that resource, with the required scopes; your provider handles sign-in and consent. Each tool, resource and prompt can require scopes of its own, and a caller sees only what its token allows. A tool that is not listed in the scope map is hidden and refused. Browser origins are refused unless you list them. Your tool code still checks that the caller owns the records it asks for.</p>
<h2>Keeping it healthy</h2>
<ul>
<li><strong>Idle servers.</strong> When nobody calls the server, Gregale parks it. The first call after a park takes longer; the calls after it run at normal speed.</li>
<li><strong>Readiness monitoring.</strong> A readiness policy probes the live server every 60 seconds or more, and an alert can tell you when it stops answering.</li>
<li><strong>Catalog changes.</strong> <code>gregale mcp server lock</code> saves the current tool definitions and <code>gregale mcp server watch</code> reports changes you didn't review.</li>
<li><strong>Logs and status.</strong> <code>gregale logs my-mcp --follow</code> and <code>gregale mcp server status --app my-mcp</code> show what every replica is doing.</li>
</ul>
<h2>How other platforms compare</h2>
<table>
<thead>
<tr>
<th>Platform</th>
<th>How you deploy</th>
<th>Who may call it</th>
<th>Worth knowing</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Gregale</strong></td>
<td><code>gregale mcp server deploy</code> from a starter or your own code</td>
<td>Open, or JWT access tokens from your OAuth provider with per-tool scopes</td>
<td>Each release is checked as an MCP client before it takes traffic; idle servers park (beta, Hobby+)</td>
</tr>
<tr>
<td><strong>Cloudflare Workers</strong></td>
<td>Scaffold a Worker from Cloudflare's MCP template and deploy it to <code>workers.dev</code></td>
<td>Build an authorization server with Cloudflare's Workers OAuth Provider library</td>
<td>Runs on Cloudflare's Workers runtime, so the server is written for Workers</td>
</tr>
<tr>
<td><strong>Vercel</strong></td>
<td>Add an MCP route to a Next.js app with the <code>mcp-handler</code> package</td>
<td><code>withMcpAuth</code> checks bearer tokens; you bring the authorization server</td>
<td>Each tool call is bounded by the function's maximum duration: 300 seconds by default, 800 on Pro</td>
</tr>
<tr>
<td><strong>Google Cloud Run</strong></td>
<td>Deploy a container that serves Streamable HTTP; stdio servers are not supported</td>
<td>Private by default: callers need the Cloud Run Invoker role, an ID token or IAP</td>
<td>Fits teams already on Google Cloud</td>
</tr>
<tr>
<td><strong>AWS Bedrock AgentCore Runtime</strong></td>
<td>The AgentCore CLI, or an ARM64 container image pushed to Amazon ECR</td>
<td>AWS IAM (SigV4) or OAuth</td>
<td>The server listens on port 8000 and answers at <code>/mcp</code></td>
</tr>
</tbody></table>
<p>Checked against each vendor's own documentation on November 24, 2026: <a href="https://developers.cloudflare.com/agents/model-context-protocol/guides/remote-mcp-server/">Cloudflare remote MCP server guide</a>, <a href="https://developers.cloudflare.com/agents/model-context-protocol/authorization/">Cloudflare MCP authorization</a>, <a href="https://vercel.com/docs/mcp/deploy-mcp-servers-to-vercel">Deploy MCP servers to Vercel</a>, <a href="https://docs.cloud.google.com/run/docs/host-mcp-servers">Host MCP servers on Cloud Run</a>, <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-mcp.html">Deploy MCP servers in AgentCore Runtime</a>, <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-mcp-protocol-contract.html">AgentCore MCP protocol contract</a>.</p>
<h2>Pricing</h2>
<p>MCP hosting is included on Gregale's Hobby, Pro and Scale plans. An MCP server is billed like any other app: by memory and time, and only while it runs, so a parked server costs nothing. See <a href="https://gregale.dev/pricing">Gregale pricing</a> and <a href="https://gregale.dev/docs/mcp-hosting">Host an MCP server</a> for the full guide.</p>
<h2>FAQ</h2>
<p><strong>Where should I host a remote MCP server?</strong></p>
<p>On a platform that serves Streamable HTTP over HTTPS, lets you require OAuth access tokens, and allows long tool calls. Gregale does all three and checks each new version as an MCP client before it takes traffic. Cloudflare Workers, Vercel, Google Cloud Run and AWS Bedrock AgentCore Runtime also host remote MCP servers.</p>
<p><strong>Can an MCP server scale to zero on Gregale?</strong></p>
<p>Yes. When nobody calls the server, Gregale parks it and stops billing; the next call wakes it. The first call after a park takes longer, and the calls after it run at normal speed.</p>
<p><strong>How do I keep an MCP server private?</strong></p>
<p>Create it with <code>--auth external-oauth</code> and your provider's issuer and JWKS URL. The server then accepts only JWT access tokens from that issuer with the required scopes, and each tool can require scopes of its own.</p>
]]></content:encoded></item></channel></rss>