Docs/Candor Deploy
How Candor Deploy works
Workspaces, servers, projects and services; where your apps run; what happens on a deploy; what rollback does and does not restore.
Candor Deploy builds your code and runs it on a server in your workspace: one you bring, or a managed one we create for you. You work in a dashboard at app.candordeploy.com. This page explains the pieces and the rules, so the rest of the docs make sense.
The platform is built on Openship, an open-source deployment platform. Where a file or a tool in these docs carries that name, such as openship.json, that is why.
The pieces
Workspace. Your account has a workspace. It holds your servers, your projects and the people you invite. Your plan and your trial belong to the workspace.
Server. A server is where your projects run. It is either a Linux server you connect over SSH, or a managed server we create in a region you pick. See Where your apps run.
Project. A project is one thing you run: an app built from a repository, or a database or app installed from the catalog. A project stores its source, build settings, environment variables, domains and deployment history.
Service. A project has one or more services. A simple app is one service. A project deployed from a docker compose file has one service per entry in the file. Each service has its own environment variables, logs and volumes.
Deployment. Each time a project is built and released, that is a deployment. It records the commit, the log and the outcome.
Domain. A domain routes a hostname you own to a service. See Domains and HTTPS.
Where your apps run
Every project runs on one of your workspace’s servers. There are two kinds:
- A server you bring. Any Linux server with a public address that you can reach over SSH. You add its address and connect with a password or an uploaded key. Candor Deploy pins the server’s host key on the first connection, then installs Docker and the edge that routes your domains. Private, loopback and tailnet addresses are refused.
- A managed server. We create the server for you in a region you pick, at a size you pick. Management is included. A managed server can grow in place to a larger size.
You can have as many servers as you like, of either kind.
No per-project limits
Your plan does not limit how many projects, databases or members you have, and it does not set a memory or CPU limit per project. The projects on a server share its memory, CPU and disk. What fits is decided by the server.
When a server is full:
- grow it to a larger size, if it is a managed server;
- move some projects to another server; or
- add a server.
A managed server cannot shrink in place. To go smaller, create a smaller server and move your projects to it.
Prices, sizes and the trial are in Plans, trial and billing.
What happens on a deploy
- Clone. The repository is fetched at the commit being deployed.
- Build. If the repository has a
Dockerfileat its root, that is built. If it has a compose file, each service in it is built or pulled. Otherwise the framework is detected and a build is generated for it. See Builds and configuration. - Start. The new container starts with your environment variables and the
PORTit should listen on. - Route. Your domains point at the new container.
You can watch all of this on the build screen as it happens.
Two things are worth knowing before you rely on it:
- A deploy restarts your app. Each app runs as a single container. When a new version starts, the old one stops, so there is a short interruption on each deploy. Deploy at a quiet time if that matters to you.
- A failed build changes nothing. If the build fails, the version that was running keeps running. If the new container fails to start, the previous one is started again.
Rollback
Every project keeps its recent releases. By default the last 5 are kept, plus the one that is live and any you have pinned.
To roll back, open the project’s Deployments tab, open the menu on an earlier deployment and choose Rollback to this version. If the built image is still kept, it is started again directly. Otherwise that commit is rebuilt.
A rollback restores the app’s code and the settings that release had: its environment variables, port, volume configuration and limits. It does not restore data. Your database and the files in your volumes stay as they are. If a release ran a database migration, rolling the app back does not undo the migration.
Logs
- Build log. Open a deployment to see its log. It streams live while the deployment runs.
- Runtime logs. In the project, open Monitoring & Logs, then Logs. The terminal view streams your app’s output; you can search it, copy it and download it.
- Request logs. The same tab has the HTTP request log for your domains: method, path, status and response time.
What is kept apart
- Each project runs in its own container. Projects on the same server share its memory, CPU and disk.
- A workspace cannot read or change another workspace’s projects, services, environment variables or deployments.
- Apps cannot mount paths from the host, use the Docker socket, or run privileged. Persistent data lives in named volumes (see Builds and configuration).
- Environment variables are encrypted at rest. Values you mark as secret are masked in the dashboard, in the API and in deploy logs.
What it does not do
- It does not keep copies of your data elsewhere unless you set that up. See Databases.
- It does not deploy without a restart.
- It does not give you a web address of its own with HTTPS. Plan on using a domain or subdomain you control.
- It does not support wildcard domains.
Something here wrong, unclear or missing? Tell us. Docs get fixed like bugs.
Not a customer yet? Start a free trial, or see plans and limits.