Deploy on Gregale button
Add a one-click Deploy on Gregale badge to any GitHub README using /deploy?repo= and optional ?ref=.
~2 min read
On this page
Add a one-click Deploy on Gregale badge to any public GitHub repository README so developers can launch your starter, API, worker, or remote MCP server on Gregale without copying URLs manually.
How /deploy works
When someone clicks your badge at https://gregale.dev/deploy?repo=...:
- Signed-in users are redirected straight to the new-app flow (
/dashboard/apps/new?source=git&repo=<owner/repo>) with the repository and optional ref prefilled. If onboarding is not complete yet, Gregale saves the repository target through/onboardingfirst and returns to deploy once setup finishes. - Signed-out visitors see the repository summary (or full starter card for official Gregale templates), sign-up and sign-in buttons that carry the deploy target through
?next=, a preflight repository compatibility check, and a copyablegregale deploy --repo ...command.
Add a badge to your README
Replace OWNER/REPO with your GitHub owner and repository name (for example gregale-dev/nextjs-postgres-starter):
Markdown
[](https://gregale.dev/deploy?repo=https://github.com/OWNER/REPO)
HTML
<a href="https://gregale.dev/deploy?repo=https://github.com/OWNER/REPO">
<img
src="https://gregale.dev/deploy-badge.svg"
alt="Deploy on Gregale"
width="168"
height="32"
/>
</a>
The SVG badge at https://gregale.dev/deploy-badge.svg renders at 168x32 with no third-party tracker scripts.
Query parameters
| Parameter | Required | Accepted values | Notes |
|---|---|---|---|
repo | Yes | https://github.com/owner/repo, https://github.com/owner/repo.git, github.com/owner/repo, or owner/repo | Validated and normalized to owner/repo. Nested tree paths and non-GitHub hosts are rejected and prompt for a valid repository URL on /deploy. |
ref | No | Branch name, Git tag, or commit SHA (branch is accepted as an alias) | Passed to /dashboard/apps/new and /will-it-run when valid so pinned releases work out of the box. |
Example pinned to a branch or tag:
https://gregale.dev/deploy?repo=https://github.com/OWNER/REPO&ref=v1.0.0
Compatibility and configuration
Gregale builds repositories using container-compatibility defaults:
- Include a
gregale.tomlif your app declares multiple processes (API + worker), custom build/release commands, or managed Postgres bindings. - Standard Node, Bun, Python, and Go projects without a
gregale.tomlare detected automatically via Railpack or yourDockerfile. - Test how Gregale detects any public repository before linking it by running it through the Will it run checker.
Related guides
- Deploy from your repository — GitHub integration, continuous deploys, and GitHub Actions.
- Deploy a GitHub source ref — pin branches, tags, and commit SHAs in CLI and CI deploys.
- Starter templates & MCP servers — 11 official starters with live Deploy on Gregale buttons.
- Community Discussions — ask questions or share your template.
Spotted a problem on this page? Tell us