Developers → Deploy button

Deploy to NameOcean button

Put a button in your README. People who click it get their own App Server running your project on HTTPS a few minutes later.

Deploy to NameOcean

Make your button

Markdown


      

HTML


      

On a dark background use /deploy/button.svg?theme=dark.

What happens on a click

  1. The visitor sees your repository, the stack NameOcean expects to find (Next.js, Node, Django, Flask, FastAPI, Laravel, Go, Dockerfile, compose, static) and the plans.
  2. They fill in the env variables you listed, sign in or sign up, and press Deploy. A card on the account is needed for the monthly bill (the Free plan is once per account and not charged for 12 months).
  3. NameOcean creates the server, fetches your branch and builds it with build detection; .nameocean/app.toml in your repository can change any step. The visitor watches it and gets https://<name>.nameocean.org.

For a GitHub repository the visitor chooses how their server gets the code:

  • Their own copy on GitHub (the default): after Deploy they sign in with GitHub, and NameOcean forks your repository into their account, or makes a new repository from it if it is a template. The server is connected to that copy, so every push to it deploys. If the NameOcean GitHub app is not on their account yet, GitHub asks them to install it first. If GitHub refuses the copy, or they don't sign in within 30 minutes, the server runs your repository as it is.
  • Just run it: the server gets your repository as it is now. Your later pushes don't change it, and Update on the server's Deploy tab fetches your newest commit.

When the repository is already theirs (for example one an AI app builder made in their GitHub account) and the NameOcean GitHub app can see it, it is connected directly. Other git hosts always run as they are.

How many servers were made from a repository: https://nameocean.net/deploy/count.json?repo=https://github.com/acme/shop answers {"repo": …, "deploys": 12} (public, cached for an hour), for a counter on your page.

Settings your project asks for: [deploy]

Add a [deploy] table to .nameocean/app.toml in your repository. The deploy page then shows your project's name, picks the smallest plan that runs it and asks for the env variables it needs. NameOcean reads it from GitHub, GitLab and Codeberg before the server exists. Nothing else on the server uses it.

.nameocean/app.toml
[deploy]
name = "Acme Shop"                  # shown on the deploy page
description = "A small shop with Stripe checkout"
plan = "starter"                    # smaller plans are not offered
logo = "https://acme.dev/logo.png"  # optional, https

[[deploy.env]]
name = "STRIPE_KEY"
description = "Your Stripe secret key (sk_live_...)"
required = true                     # the deploy waits until it is filled in

[[deploy.env]]
name = "SECRET_KEY"
generate = true                     # NameOcean makes a random 48-character secret

[[deploy.env]]
name = "CURRENCY"
value = "EUR"                       # a default the visitor can change

Up to 30 variables. Values go straight to the new server's env variables; NameOcean does not keep them. Check what the page will show with nameocean repo inspect https://github.com/acme/shop (or GET /api/v1/deploy/inspect?repo=…).

URL parameters

repohttps address of a public git repository (GitHub, GitLab, Codeberg get a repository card; any other git host works too)
branchthe branch to deploy (default: the repository's)
planthe plan to preselect: free, tiny, starter, growth, pro
envenv variable names to ask for, comma separated
namea server name to suggest
refwho sent the visitor (you, your site, your app builder)

From code: API, MCP, CLI

AI app builders and scripts do the same in one request:

nameocean
$ nameocean servers create --plan starter --repo https://github.com/acme/shop --env STRIPE_KEY=sk_live_… --yes
$ nameocean servers source update 3f9a1c2e      # deploy the repository's newest commit

GET /api/v1/deploy/inspect?repo=… (MCP inspect_repo, CLI nameocean repo inspect URL) shows what a repository needs first. POST /api/v1/servers with {"plan": "starter", "repo": {"url": "https://github.com/acme/shop", "branch": "main"}, "env": {"STRIPE_KEY": "…"}, "confirm": true}; GET /api/v1/servers/{server} has source.status (waiting, deploying, deployed, failed); POST /api/v1/servers/{server}/source updates it. MCP: create_server with repo, branch, env, and update_from_source.