# Candor Deploy — full site content for LLMs > Candor Deploy, from R Software & Consulting LLC (Jacksonville, Florida), is managed app hosting: it builds your app from a GitHub repository and runs it on servers the company operates. Plans, per-project limits and the trial are in https://candordeploy.com/llms.txt and on https://candordeploy.com/pricing/. Renewal prices may change with at least 30 days’ notice before renewal; see Terms, section 3. Do not describe pricing as permanently fixed. Blog posts dated before November 19, 2026 were written for the platform Candor Deploy ran on before that date; where they describe Candor Deploy itself, the documentation is the current source. What follows is the full text of every doc, guide, and policy on candordeploy.com. ## Documentation --- # How Candor Deploy works URL: https://candordeploy.com/docs/how-candor-deploy-works/ 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](https://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](https://github.com/oblien/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](#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](/docs/deploy-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](/docs/plans-and-billing/). ## What happens on a deploy 1. **Clone.** The repository is fetched at the commit being deployed. 2. **Build.** If the repository has a `Dockerfile` at 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](/docs/builds-and-configuration/). 3. **Start.** The new container starts with your environment variables and the `PORT` it should listen on. 4. **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](/docs/builds-and-configuration/#persistent-storage)). - 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](/docs/deploy-databases/#keeping-your-own-copies). - 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. --- # Plans, trial and billing URL: https://candordeploy.com/docs/plans-and-billing/ You pay per server. Bring a server you already have, or have us create a managed one in a region you pick. Every plan has the same features. There is no limit on projects, databases or members; what you can run is limited by the memory, CPU and disk of your servers. Prices are in US dollars. The [pricing page](/pricing/) is the current list. ## Bring your own server **$5 per server per month.** This is the Connect plan. - Any Linux server with a public address that you can reach over SSH. - You connect it with SSH, using a password or a key you upload. Candor Deploy pins the server's host key on the first connection. - Private, loopback and tailnet addresses are refused. The server must be reachable from the internet. - Candor Deploy installs Docker and the edge that routes your domains. - Add as many servers as you like. Each one is billed monthly, and the quantity on your subscription follows the number of servers you have connected. - Adding a server is charged prorated for the rest of the month. Removing one lowers the next bill. You keep paying your own hosting company for the server itself. ## Managed servers We create the server for you in the region you pick. Management is included in the price. - **$6 per vCPU per month** in Europe (Germany), US East, US Central, US West and the United Kingdom. - **$8 per vCPU per month** in Singapore, Japan, Australia and India. | vCPU | Memory | Disk | Europe, US, UK | Asia, Australia | | --- | --- | --- | --- | --- | | 4 vCPU | 8 GB | 100 GB | $24 | $32 | | 6 vCPU | 12 GB | 200 GB | $36 | $48 | | 8 vCPU | 24 GB | 300 GB | $48 | $64 | | 12 vCPU | 48 GB | 400 GB | $72 | $96 | | 16 vCPU | 64 GB | 500 GB | $96 | $128 | | 18 vCPU | 96 GB | 600 GB | $108 | $144 | Prices are per server per month. India is billed at the Asia, Australia price. How ordering works: - You need the paid Connect plan first, which means a card on file. Managed servers are not part of the free trial. - In the dashboard, open **Plans & billing**, then **Candor Cloud**, and pick a region and a size. - The order is charged straight away, prorated for the rest of the month. - The server is ready in a few minutes. ### Changing the size - **Growing.** A managed server can grow in place to a larger size. You are charged the difference now, prorated for the rest of the month. - **Shrinking.** A server cannot shrink in place. Create a smaller server, move your projects to it, then remove the larger one. ## What fits on a server There are no plan limits on projects, databases, memory or CPU per project, or members. Your projects share the memory, CPU and disk of the server they run on. When a server is full, grow it (managed servers), move some projects to another server, or add one. Team roles (owner, admin, member and restricted) are available on every plan. See [Team members and roles](/docs/team-members/). ## The free trial - Every new account starts a 14-day free trial when it is created. - The trial covers 1 server that you bring. - You are not asked for a card to start. - There is one trial per account. A second workspace created by the same account does not get another. - Managed servers are not part of the trial. The dashboard shows a notice with the days left. ### When the trial ends If you have not chosen a plan by the end of the trial: - New deploys are blocked until you choose a plan. - **Apps that are already running keep running.** - **Your data is kept.** Choosing a plan lifts the block. ## Paying - Plans are billed monthly through Stripe. Card numbers are held by Stripe, not by us. - Choosing a plan and ordering managed servers is done by the workspace owner. - Invoices and your card are in Stripe's customer portal, which you open from **Billing** in the dashboard. ## Cancelling Cancel in Stripe's customer portal. The cancellation takes effect at the end of the period you have paid for. Until then everything works as before. After a plan ends, new deploys are blocked. What happens to your data after you leave is covered by the [cancellation policy](/cancellation/). ## Refunds and price changes - New plans come with a 30-day money-back guarantee. See the [refund policy](/refund/). - Renewal prices can change, with at least 30 days' notice before renewal. See [Terms, section 3](/terms/#3-fees-billing-and-renewals). --- # Quickstart: from sign-up to a live app URL: https://candordeploy.com/docs/deploy-quickstart/ This page takes you from nothing to an app running on your own domain with a database. Each step names the screen you will see in the dashboard at [app.candordeploy.com](https://app.candordeploy.com/). You need four things: a GitHub repository with your app in it, a domain (or a subdomain) whose DNS you can edit, an email address, and a server to run the app on. The server can be one you already have, or a managed one we create for you after you choose a plan. ## 1. Create your account Go to [app.candordeploy.com/register](https://app.candordeploy.com/register). Enter your name, your email address and a password of at least eight characters, then press **Create account**. We email you a code; enter it to verify the address. Your 14-day free trial starts when the account is created. It covers 1 server that you bring. You are not asked for a card. What happens when it ends is in [Plans, trial and billing](/docs/plans-and-billing/). ## 2. Add a server Your apps run on a server in your workspace. Add one in one of two ways. **Bring your own.** Any Linux server with a public address that you can reach over SSH. Enter its address and connect with a password or an SSH key you upload. Candor Deploy pins the server's host key on the first connection, then installs Docker and the edge that routes your domains. This takes a few minutes. Private, loopback and tailnet addresses are refused. This is the option the trial covers. **Create a managed server.** Choose a plan first (this needs a card), then open **Plans & billing**, then **Candor Cloud**, and pick a region and a size. The server is ready in a few minutes. Managed servers are not part of the trial. Prices are in [Plans, trial and billing](/docs/plans-and-billing/#managed-servers). ## 3. Connect GitHub Open **Settings**, then **Git**. There are two ways to give Candor Deploy access to your repositories. Pick one. **A personal access token.** Under **GitHub clone credentials**, paste a token into **Personal access token**, press **Save token** and turn on **Use by default**. For private repositories the token needs the `repo` scope (classic tokens) or read access to the repositories you want to deploy (fine-grained tokens). This is the quickest way to start. **A GitHub App for your workspace.** Under **Self-hosted GitHub Apps**, press **Create with GitHub**. GitHub creates an app that belongs to you, asks which repositories it may read, and sends you back. Only the workspace owner can do this. Choose this if you want pushes to deploy automatically without creating webhooks by hand, or deploy results reported on your commits. ## 4. Deploy a repository 1. Press **New Project** in the sidebar. 2. Open the **GitHub** tab and choose your repository and branch. 3. The **Config** screen shows what was detected: the framework, the install and build commands, and the port. Correct anything that is wrong. If your repository has a `Dockerfile` or a compose file at its root, that is used instead of framework detection. Details are in [Builds and configuration](/docs/builds-and-configuration/). 4. Add any **Environment Variables** your app needs to build or start. 5. In the **Domain** card, choose **Custom domain** and enter the hostname you want, for example `app.example.com`. You can also skip this and add the domain after the first deploy, but the app has no public address until a domain is attached. 6. Press **Deploy**. The next screen follows the deployment. A step tracker shows each stage, and the **Build Terminal** streams the log as it runs. When it finishes, the heading reads **Deployment Successful**. Your app must listen on the port in the `PORT` environment variable, on `0.0.0.0`. If the build fails or the app does not start, see [Troubleshooting](/docs/deploy-troubleshooting/). ## 5. Point your domain at it Open the project, then **Domains & Routes**. Your domain is listed with a **DNS Records** panel. 1. At your DNS provider, create the record shown. For most domains it is one `A` record pointing at the address in the panel. 2. Back in the dashboard, press **Verify**. Verification requests an HTTPS certificate from Let's Encrypt. When it succeeds, the app is live at `https://` your domain, and the certificate is renewed for you. DNS changes can take a while to spread; if **Verify** fails, wait a few minutes and try again. More in [Domains and HTTPS](/docs/deploy-domains-and-https/). ## 6. Add a database A database is its own project. It runs on your server and uses that server's memory, CPU and disk, like your app. 1. Press **New Project** and stay on the **Apps** tab. 2. Choose **PostgreSQL + pgAdmin** (or MariaDB, MongoDB or Valkey) and install it. 3. Open the new database project. On its connection card, press **Use in a project**, pick your app, and choose the variable to inject, for example `DATABASE_URL`. 4. Your app reads the variable the next time it deploys. If the app is already deployed, the dashboard tries to redeploy it straight away. By default the connection is **Internal**: your app reaches the database over a private network, and the database has no public port. More in [Databases](/docs/deploy-databases/). ## 7. Deploy on every push Open the project, then **Source & Triggers**, and turn on **Auto Deploy**. From then on, a push to the deploy branch builds and ships. Auto Deploy needs GitHub to notify Candor Deploy of a push. With a workspace GitHub App that already happens. With a personal access token, the token must have admin access to the repository so the dashboard can create the webhook for you. Until you turn Auto Deploy on, you deploy when you choose to: open the project and press **Redeploy Project**. ## What to read next - [How Candor Deploy works](/docs/how-candor-deploy-works/): servers, projects, deploys and rollback. - [Builds and configuration](/docs/builds-and-configuration/): detection, Dockerfiles, compose, environment variables and storage. - [Plans, trial and billing](/docs/plans-and-billing/): what a server costs and how you pay. --- # Add a server URL: https://candordeploy.com/docs/add-a-server/ Your projects run on servers in your workspace. You can connect a server you already rent, or have us create a managed one for you, called a Candor Cloud server. This page covers both. What each costs is in [Plans, trial and billing](/docs/plans-and-billing/). ## What your server needs - **Linux.** Ubuntu or Debian is the easiest choice. Other common distributions work too. - **A public address.** Candor Deploy connects to your server from the internet. Private addresses (such as `10.x`, `192.168.x`), loopback, and tailnet or CGNAT addresses (`100.64.x` to `100.127.x`) are refused, including host names that resolve to them. - **SSH access** as `root`, or as a user that can install packages and run Docker. You log in with a password or a private key. - **Room for your apps.** The projects on a server share its memory, CPU and disk, so size it for everything you plan to run on it, builds included. You do not need to install Docker or anything else first. Candor Deploy installs what is missing. ## Connect your server 1. Open **Servers** in the sidebar and press **Add Server** (or **Add Your First Server** if the list is empty). 2. Fill in the form: - **Server Name**: an optional label such as `Production`. If you leave it blank, the address is used. - **Server IP Address**: the public address of the server, for example `203.0.113.10`. - **Port**: the SSH port. This is `22` unless you changed it. - **Username**: usually `root`. - **Authentication**: choose **Password** or **SSH Key**. 3. Press **Test Connection**. It logs in and reports back without saving anything. Fix any error before you go on. 4. Press **Save & Continue to Setup**. ### Password or SSH key **Password.** Type the server's password. It is encrypted before it is stored. **SSH key.** Paste your private key into **Private Key**, or press **Upload key file** and choose the file (for example `~/.ssh/id_ed25519`). Upload the private key, not the `.pub` file: the form rejects a file that is not a private key. If the key has a passphrase, enter it under **Passphrase**. The key is encrypted before it is stored, and the dashboard never shows it again. To replace it later, open the server, press **Edit** and paste a new one. The public half of the key must already be in `~/.ssh/authorized_keys` for that user on the server. ### The host key is pinned On the first connection, Candor Deploy records the server's SSH host key. Every later connection checks it. If the key changes, for example because the server was reinstalled, connections are refused until the change is dealt with. [Contact us](/contact/) if that happens. ## What Candor Deploy installs After you save, choose how to set the server up: - **Automatic Setup** checks the server and installs everything missing in one go. Pick this if you are not sure. - **Step-by-Step Setup** shows each component and its status, and lets you choose what to install. - **Skip for Now** saves the server without installing anything. You can run setup later from the server's page. Setup installs: - **Docker**, which runs your apps in containers. - **Git**, which fetches your code. - **The edge**, the reverse proxy that sends traffic for your domains to the right app and gets HTTPS certificates from Let's Encrypt. Parts of it may be added the first time an app needs a domain or HTTPS. You can follow the progress and the log as each piece installs. When it finishes, you land on the server's page. Its **Components** tab lists what is installed, with **Re-check** and **Install Missing** if something needs fixing. ## Firewall and ports If your server or your hosting company has a firewall, allow these inbound: | Port | What for | | --- | --- | | 22 (or your SSH port) | Candor Deploy manages the server over SSH. | | 80 | HTTP, and Let's Encrypt's checks when it issues a certificate. | | 443 | HTTPS to your apps. | If you run a mail server on it, mail needs its own ports too, such as 25, 587 and 993. Your databases do not need a public port. Apps reach them over a private network on the server. See [Databases](/docs/deploy-databases/). The server's **Security** tab can scan which ports are listening and flag any open to the public, and set a per-visitor request rate limit for the whole server. ## The server page Each server has its own page with tabs: - **Overview**: CPU, memory, disk, uptime and load, and the health of its components. - **Components**: what is installed, with re-check, install and reinstall. - **Security**: the port scan and rate limiting. - **Terminal**: a shell on the server in your browser. **Edit** in the header changes the connection details. **Remove Server** in the menu removes it from your workspace. ## If the connection fails **"Can't reach" the server.** Candor Deploy could not open an SSH connection. Check that: - the server is running; - SSH is listening on the port you entered; - a firewall allows SSH from the internet, not just from your own address; - you entered the public address, not a private one. **"SSH credentials rejected".** The server answered but refused the login. The password is wrong, or the key is not in `~/.ssh/authorized_keys` for that user. Some servers disable password logins (`PasswordAuthentication no` in the SSH settings); use a key for those. Open **Edit** on the server, fix the credentials, and test again. **The address is refused.** The address, or the address a host name resolves to, is private, loopback or on a tailnet. Use the server's public address. **A component failed to install.** Open **Components** and expand the install log. The last lines say why. Common causes are a server with no outbound internet, or a package manager that is busy with automatic updates. Wait a few minutes, then press **Re-check** and **Install Missing**. **The trial or plan stops you adding it.** The free trial covers one server you bring. To add more, choose a plan under **Plans & billing**. See [Plans, trial and billing](/docs/plans-and-billing/). Still stuck? [Contact us](/contact/) with the server's address and the error you see. Do not send passwords or keys. ## Candor Cloud: a managed server If you would rather not run a server yourself, we can create one for you. A Candor Cloud server is a managed server we set up and run, in a region and a size you pick. Docker and the edge are installed for you. 1. Choose a plan first. Candor Cloud needs the paid Connect plan, so it is not part of the free trial. 2. Open **Plans & billing** and scroll to **Candor Cloud**. The **Add Server** dialog also links there. 3. Pick a **Region** and a **Size**, optionally give it a **Name**, and press **Create**. The order is charged straight away, prorated to your billing date, and the server is ready in a few minutes. It then appears under **Servers** like any other. A Candor Cloud server can grow in place to a larger size from the same list. It cannot shrink; to go smaller, create a smaller one and move your projects to it. Deleting one removes everything running on it and deletes its data. Prices are in [Plans, trial and billing](/docs/plans-and-billing/#managed-servers). ## What to read next - [Quickstart](/docs/deploy-quickstart/): deploy your first app to the new server. - [How Candor Deploy works](/docs/how-candor-deploy-works/): servers, projects and deploys. --- # Builds and configuration URL: https://candordeploy.com/docs/builds-and-configuration/ This page covers what happens between choosing a repository and a running container, and the settings you control. If you have not deployed anything yet, start with the [Quickstart](/docs/deploy-quickstart/). ## How your repository is built The dashboard reads your repository and decides how to build it, in this order: 1. **A compose file** at the root (`docker-compose.yml`, `docker-compose.yaml`, `compose.yml` or `compose.yaml`): each service in it is built or pulled, and the project becomes a multi-service project. 2. **A `Dockerfile`** at the root: that is built. It takes priority over framework detection. 3. **Otherwise the framework is detected** and a build is generated for it. What was detected is shown on the **Config** screen before the first build, and you can change it there. ### Frameworks that are detected | Language | Detected | | --- | --- | | JavaScript and TypeScript | Next.js, Nuxt, SvelteKit, Astro, Vite, Angular, Gatsby, Remix, TanStack Start, Create React App, Vue, Farm.js, Express, Fastify, Hono, NestJS, Koa, AdonisJS, Elysia, and plain Node.js | | Python | Django, Flask, FastAPI, and plain Python | | Go | Gin, Fiber, Echo, and plain Go | | Rust | Actix, Axum, Rocket, and plain Rust | | Ruby | Rails, Sinatra | | PHP | Laravel, Symfony | | Java | Spring Boot, Quarkus | | C# | .NET, Blazor | | Elixir | Phoenix | | Static | A site with an `index.html`, or a framework that builds to static files | If your stack is not listed, add a `Dockerfile`. Anything that builds into a container image and listens on a port will run. ### Monorepos Workspaces are recognised (npm, pnpm, Yarn and Bun workspaces, Cargo, `go.work`, Maven and Nx). The Config screen shows one card per app in the repository; choose the one you are deploying and check its working directory. ### A compose file somewhere else If your compose file is not at the root or has another name, enter its path in **Compose file** on the Config screen and press **Scan**. Compose files are checked before they are deployed. A service that mounts a path from the host, mounts the Docker socket, runs privileged, adds capabilities or uses the host's network is refused. Use named volumes instead of host paths. ## The port Your app must listen on the port in the `PORT` environment variable, on all interfaces (`0.0.0.0`), not on `localhost`. The port is detected from your start script or your Dockerfile's `EXPOSE` line. If neither says, the framework's usual port is used. You can change it on the Config screen. Whatever it ends up being, it is passed to your app as `PORT`, so reading `PORT` always works: ```js const port = process.env.PORT || 3000; app.listen(port, '0.0.0.0'); ``` ## Environment variables There are two places to set them: - **Project environment**: values shared by the project and available during the build and at runtime. - **A service's Environment tab** (open **Apps & Services**, then the service): runtime values for that service only. A service value overrides a project value with the same name. Press **Add variable**, or use **Edit as text** to paste several at once. **Upload .env** imports a file. Things to know: - **Every value is encrypted before it is saved.** - **Mark sensitive values as secret** with the key icon. A secret is masked in the dashboard, in API responses and in deploy logs. The **Download .env** button exports real values, including secrets, so treat that file with care. - **Saving does not restart your app.** After changing values, press **Apply environment changes**, or redeploy. Values needed at build time, such as `NEXT_PUBLIC_` variables, need a redeploy that rebuilds. ## Persistent storage A container's own filesystem is replaced on every deploy. Anything that must survive a deploy, such as uploads or a SQLite file, belongs in a volume. You can declare a volume in three ways: - a `VOLUME` line in your Dockerfile, which is mounted automatically; - a named volume in your compose file, for example `pgdata:/var/lib/postgresql/data`; - the **Persistent storage** setting of the project, one path per line, for example `uploads:/app/public/uploads`. Volumes are named and belong to the project. Paths on the host (anything starting with `/`, `./` or `~` on the left of the colon) are refused. A volume change takes effect on the next deploy. A volume is on the server the project runs on. It is not a copy kept somewhere else. See [keeping your own copies](/docs/deploy-databases/#keeping-your-own-copies). ## Memory and CPU Your plan does not set a memory or CPU limit per project. The projects on a server share its memory and CPU (see [Where your apps run](/docs/how-candor-deploy-works/#where-your-apps-run)). If your app is killed for using too much memory, the server is full: grow it (managed servers), move some projects to another server, or add a server. ## Deploying again - **Redeploy Project** builds and releases the latest commit on the deploy branch. - **Auto Deploy**, under **Source & Triggers**, does that on every push. See the [Quickstart](/docs/deploy-quickstart/#7-deploy-on-every-push). - **Rollback to this version**, on an earlier deployment, goes back. See [Rollback](/docs/how-candor-deploy-works/#rollback). ## Optional: openship.json You do not need a configuration file. If you would rather keep the build settings in your repository than in the dashboard, add an `openship.json` at the root. Detection still runs; the file overrides the fields you declare. ```json { "framework": "nextjs", "buildCommand": "pnpm build", "port": 3000, "env": { "NEXT_PUBLIC_API_URL": "https://api.example.com" }, "releaseCommands": ["pnpm prisma migrate deploy"], "volumes": ["uploads:/app/public/uploads"] } ``` - `releaseCommands` run once per deploy, after the build and before the new version goes live. If one fails, the deploy fails and the running version is left alone. They run for single-app projects, not for compose projects. - Do not put secret values in the file. Set them in the dashboard and mark them secret. The earlier `.candorfile` format belonged to the platform Candor Deploy ran on before November 2026. It is not read any more. --- # Multi-service apps and docker compose URL: https://candordeploy.com/docs/multi-service-apps/ Many apps are more than one process: a web server, a background worker, a database, a cache. In Candor Deploy these run as **services** of one project. Each service is its own container with its own environment variables, logs and volumes. They share a private network, so they reach each other by service name. You get services from a docker compose file in your repository, by adding them in the dashboard, or both. ## From a docker compose file If your repository has a compose file at its root (`docker-compose.yml`, `docker-compose.yaml`, `compose.yml` or `compose.yaml`), each service in it becomes a service of the project. If the file is somewhere else or has another name, enter its path (or its folder) in **Compose file** on the **Config** screen and press **Scan**. These compose fields are used: `image`, `build`, `dockerfile`, `ports`, `depends_on`, `environment`, `volumes`, `command`, `restart` and `healthcheck`. Everything else in the file, such as `networks`, `labels` and `profiles`, is left alone. Some things are refused for safety: mounting a path from the server, mounting the Docker socket, `privileged`, added capabilities and the host's network. Use named volumes such as `pgdata:/var/lib/postgresql/data`. See [Builds and configuration](/docs/builds-and-configuration/#a-compose-file-somewhere-else). Candor Deploy never writes to your repository. Changes you make in the dashboard are stored with the project and used on every deploy. To change the file itself, edit it and push. ### What `build:` means `build:` is the folder Docker builds from. `COPY` paths in that service's Dockerfile are relative to it, `dockerfile:` is looked for inside it, and its `.dockerignore` applies. Relative paths are resolved from the compose file's own folder, as `docker compose` does. A service whose build folder has no Dockerfile fails with an error; another Dockerfile in the repository is not used instead. `build.args` and `build.target` are not read. Build arguments come from the service's environment variables, each passed as a `--build-arg`. Modern Dockerfile features such as `RUN --mount=type=cache` need BuildKit, which is used when the Dockerfile asks for it. The build log says which builder ran. ### Database access during a Next.js build If `next build` fails with `getaddrinfo ENOTFOUND db`, often followed by something like `Failed to collect page data for /api/hours`, code that ran during the build tried to connect to your database by its service name. That cannot work. The build does not wait for your database to start, and it is not on the services' private network, so even a database that is already running cannot be reached as `db` from the build. `depends_on` (or `"dependsOn"` in `openship.json`) only orders how containers start; it does not help the build. The fix is to connect when a request arrives, not when the module loads. Next.js imports route modules during the build, so a connection made at the top of a file, or in a helper it imports, runs then. `export const dynamic = 'force-dynamic'` alone does not stop that. For example, with Payload in a Next.js route handler, move the initialisation inside the handler: ```ts import config from "@payload-config"; import { getPayload } from "payload"; export const dynamic = "force-dynamic"; export async function GET() { const payload = await getPayload({ config }); const result = await payload.find({ collection: "hours", overrideAccess: false, }); return Response.json(result); } ``` Keep your existing authentication and access checks when you adapt this. Check the imported helpers and config files for the same kind of top-level connection. At runtime, keep the connection string pointing at the service name, such as `db:5432`; that works once both services are running. If a page really needs data while it is generated at build time, moving an API handler will not help. Either give the build a data source it can reach, or load that page's data at request time. ## Adding a service by hand Any project can have extra services, from a catalog of common images (databases, caches, search, queues, object storage and more) or from any Docker image. 1. Open the project, then **Apps & Services**, and add a service. The **Add an app or service** dialog opens. 2. Pick from the catalog, search by name, or choose **Custom image** and enter an image and tag. 3. Check the details: - **Name**: short and unique in the project, such as `db`. Other services use it as the host name. - **Ports**: the port or ports the container listens on, such as `5432`. - **Image**: the image and tag, such as `postgres:16-alpine`. - **Persistent volumes**: name and container path pairs, so data survives restarts and redeploys. - **Environment variables** the service needs. - Whether it is internal only (the right choice for databases and workers) or has a public address on a domain you own. 4. Press **Add**. If the project is already deployed, adding a service redeploys it so the new container starts. If not, the service is saved and starts on the first deploy. ## Working with a service Open the project, then **Apps & Services**, and select a service. Each row shows whether the service is public or internal and its status. A service has these tabs: - **Overview**: its internal address, ports, configuration and volumes. - **Logs**: its output, live. - **Environment**: its own variables. Press **Save environment**, then apply or redeploy for the change to take effect. - **Terminal**: a shell inside the running container. - **Settings**: name, image or build, ports, depends-on, volumes, command, restart policy and health check, and the buttons below. The buttons on **Settings** depend on the state: - **Running**: **Stop** and **Restart**. - **Stopped**: **Start**. - Never started: **Enable & start**. - **Redeploy** rebuilds only this service and leaves the others running. - **Disable Service** skips it on deploys. **Delete** removes it. Restarting or redeploying a service restarts its container, so expect a short interruption to that service. ## When the compose file and your edits disagree On every deploy the current compose file is read again and merged with your service settings, field by field: | The file changed? | You edited that field? | Result | | --- | --- | --- | | No | Either | Your value is kept. | | Yes | No | The file's new value is used. | | Yes | Yes | Your edit is kept; the file's other changes are applied. | | A new service appears | | It is added. | | A service is removed | No | It is removed if it has no saved environment. | | A service is removed | Yes | It is kept until you delete it. | When the compose file has changed, the deploy waits for you to review the changed services on the **Config** screen, then deploy again. Saved environment variables are kept, even if a key disappears from the file. Remove a variable yourself in the environment editor when you no longer need it. ## Troubleshooting **I added a service but nothing is running.** A container only starts on a deploy. Deploy the project, or press **Enable & start** on the service's **Settings** tab. **A service cannot reach another.** Use the other service's name as the host and its container port, for example `redis:6379`, not `localhost`. **Data was lost after a deploy.** The container's own filesystem is replaced on every deploy. Put data in a named volume. See [persistent storage](/docs/builds-and-configuration/#persistent-storage). A volume lives on the same server; it is not a copy kept anywhere else. More in [Troubleshooting deploys](/docs/deploy-troubleshooting/). ## Related - [Builds and configuration](/docs/builds-and-configuration/) - [Databases](/docs/deploy-databases/) - [Add your own app to the catalog](/docs/custom-apps/) --- # Domains and HTTPS URL: https://candordeploy.com/docs/deploy-domains-and-https/ To put an app on the web you attach a domain you control. Candor Deploy issues an HTTPS certificate for it from Let's Encrypt and renews it for you. Plan on using your own domain or subdomain. These docs do not promise a web address of ours for your app. ## Add a domain You can add a domain while creating the project (the **Domain** card on the Config screen) or afterwards: 1. Open the project and go to **Domains & Routes**. 2. Press **Add domain** and choose **Custom domain**. 3. Enter the hostname, for example `app.example.com` or `example.com`. If the project has more than one service or port, choose which one the domain maps to. 4. Tick **Include www** if you want `www.` handled as well. 5. Save. A **DNS Records** panel appears with the record to create. ## Create the DNS record At your DNS provider, create the record the panel shows. For most domains that is one `A` record: | Type | Host | Value | | --- | --- | --- | | `A` | `@` for the bare domain, or the subdomain, for example `app` | the address shown in the panel | Copy the value from the panel. Do not guess it or reuse one from another project. Issuing the certificate needs plain HTTP on port 80 to reach us for that hostname. If you use Cloudflare for DNS and verification fails with its proxy turned on, set the record to **DNS only** and verify again. ## Verify Press **Verify** on the domain. Verification asks Let's Encrypt for a certificate, which proves the hostname reaches your app. When it succeeds the domain is live over HTTPS. If it fails: - DNS changes take time to spread. Wait a few minutes and press **Verify** again. Pending domains are also retried in the background. - Check the record with `dig +short app.example.com`. It should print the address from the panel and nothing else. - Remove any old `A`, `AAAA` or `CNAME` records for the same hostname. An `AAAA` record pointing somewhere else is a common cause. ## www and redirects With **Include www**, `www.example.com` is added as a second hostname. It needs its own DNS record and its own **Verify**. By default it redirects to the hostname you typed; you can switch which one is primary, or serve both. ## Renewal Certificates issued this way renew automatically before they expire. You do not need to do anything. If you upload your own certificate instead, it does not renew; you replace it yourself before it expires. ## What is not available - **Wildcard domains** such as `*.example.com`. Add each hostname you need. - **Our own hostnames.** You cannot attach a hostname that belongs to Candor Deploy. ## Other things on the Domains & Routes tab The same tab has settings for redirects, password protection for a domain, rate limits and IP rules, and a maintenance page. They apply to custom domains with HTTPS. --- # Databases URL: https://candordeploy.com/docs/deploy-databases/ Databases are installed from the **Apps** catalog. Each one runs as its own project, in its own container, on one of your servers. ## What is in the catalog | Catalog entry | What you get | | --- | --- | | PostgreSQL + pgAdmin | A PostgreSQL server and the pgAdmin web interface | | MariaDB + Adminer | A MariaDB server (MySQL-compatible) and the Adminer web interface | | MongoDB | A MongoDB server and Mongo Express | | Valkey (Redis) | A Valkey server, which speaks the Redis protocol | The catalog has other entries too. These four are the ones these docs cover. There is no plan limit on how many databases you install. Each one uses memory, CPU and disk on the server it runs on, alongside your apps. See [Where your apps run](/docs/how-candor-deploy-works/#where-your-apps-run). ## Install one 1. Press **New Project** and stay on the **Apps** tab. 2. Choose the database and follow the install screen. 3. When the install finishes, the database is a project in your list. ## Connect it to your app 1. Open the database project. Its connection card shows the connection details. 2. Press **Use in a project** and choose your app. 3. Pick the variable to inject, for example `DATABASE_URL` for PostgreSQL, `REDIS_URL` for Valkey or `MONGODB_URI` for MongoDB. 4. Choose how the app reaches it: - **Internal (recommended)**: over a private network shared by the two projects. The database has no public port. - **Public**: through a published host and port. Use this only if something outside Candor Deploy must connect. 5. The variable is set on your app. It takes effect the next time the app deploys. If the app is already deployed, the dashboard tries to redeploy it straight away. In your code, read the variable: ```js const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL }); ``` ## Size and limits Your plan does not set a memory or CPU limit for a database. It shares the server's memory, CPU and disk with the other projects on that server. If a database needs more than the server has left, grow the server (managed servers), move other projects to another server, or add a server. The data is stored in a named volume on the server the database runs on. ## Keeping your own copies **Nothing is copied off the server for you.** There is no automatic export of your databases or volumes. A rollback restores your app's code and settings; it does not restore data. Keep copies of anything you cannot afford to lose. Two ways: - **Export it yourself.** Use the database's usual tool on a schedule that suits you: `pg_dump` for PostgreSQL, `mysqldump` for MariaDB, `mongodump` for MongoDB. pgAdmin and Adminer can export from the browser. - **Use the dashboard's Backup tab.** A project's **Backup** tab can send database dumps and volumes to a destination you provide: S3-compatible storage or an SFTP server. You add and verify the destination first, then create a policy and choose a schedule. Nothing runs until you have set that up, and the destination is yours to pay for and look after. Whichever you choose, test a restore before you need one. ## Deleting a database Deleting a database project can delete its data with it. The dashboard shows what will be removed before you confirm. Export first. --- # Add your own app to the catalog URL: https://candordeploy.com/docs/custom-apps/ The **Apps** page is a catalog of apps you can install in one click, such as databases and dashboards. You can add your own to it. A custom app is a JSON file that describes the containers to run, how they connect, which passwords to generate, and what to show once the app is running. It is visible only in your workspace. Use a custom app for a stack you install more than once: an internal tool, a standard set of services for each client, or a self-hosted app that is not in the catalog. To deploy your own code from a repository, you do not need this; see the [Quickstart](/docs/deploy-quickstart/). ## Add one 1. Open **Apps** in the sidebar and press **Add custom**. The **Add a custom app** dialog opens. 2. Drop your `app.json` file on the box, or press **browse** and choose it. 3. The file is checked straight away. A green **Valid app definition** line means it passed. Otherwise the error says what is wrong. 4. Press **Add app**. The app now appears in your catalog and installs like any other. Every custom app is marked **Unverified**. It runs the images you named, which nobody has reviewed. Only add definitions you have read and trust. A `"verified": true` line in the file is ignored. Rules the check enforces: - The file must be valid JSON and pass the same validation as the built-in catalog. - `kind` must be `"template"`. - The `id` cannot be the same as a built-in app's. ## A small example This defines Umami, a web analytics app, with its own PostgreSQL database: ```json { "id": "umami", "name": "Umami", "description": "Privacy-focused web analytics.", "kind": "template", "category": "analytics", "framework": "docker-compose", "services": [ { "name": "umami-db", "image": "postgres:16-alpine", "environment": { "POSTGRES_DB": "umami", "POSTGRES_USER": "umami" }, "secretEnv": ["POSTGRES_PASSWORD"], "volumes": ["umami_db_data:/var/lib/postgresql/data"], "healthcheck": { "test": "pg_isready -U umami", "interval": "5s", "retries": 10 }, "restart": "unless-stopped" }, { "name": "umami", "image": "ghcr.io/umami-software/umami:postgresql-v2.11.3", "ports": ["3000:3000"], "exposedPort": 3000, "exposed": true, "dependsOn": ["umami-db"], "environment": { "DATABASE_TYPE": "postgresql", "DATABASE_URL": "postgresql://umami:{{config:POSTGRES_PASSWORD}}@umami-db:5432/umami" }, "secretEnv": ["DATABASE_URL", "APP_SECRET"], "restart": "unless-stopped" } ], "configFields": [ { "key": "POSTGRES_PASSWORD", "service": "umami-db", "label": "Database password", "generate": "secret", "secret": true }, { "key": "APP_SECRET", "service": "umami", "label": "App secret", "generate": "secret", "secret": true } ], "endpoints": [ { "service": "umami", "port": 3000, "label": "Dashboard", "kind": "http" } ], "connection": { "title": "Umami", "description": "Sign in, then add a website to get its tracking snippet.", "outputs": [ { "id": "dashboard", "label": "Dashboard", "source": "publicUrl:umami", "kind": "url", "recommended": true } ], "firstLogin": { "username": "admin", "password": "umami", "note": "Change this immediately after the first sign-in." } } } ``` The image tag is an example. Pin the version you have tested. ## The parts of a definition **Identity.** `id` is a short lowercase name with hyphens, such as `umami`. `name`, `description`, `category` and `tags` are what people see in the catalog. `logo` can name a logo from [Simple Icons](https://simpleicons.org/) (for example `"umami"`); without one, a placeholder is shown. **Services.** Each entry in `services` is one container. Give it either an `image` to pull or a `build` (an inline Dockerfile and its files), not both. The service name is also its host name on the app's private network, which is why the app above reaches its database at `umami-db`. - `ports` and `exposedPort` say which port the container listens on. - `exposed: true` marks the service people should reach in a browser. - `volumes` keeps data across restarts and redeploys. Use named volumes, such as `umami_db_data:/var/lib/postgresql/data`. Paths on the server and the Docker socket are not allowed. - `dependsOn` and `healthcheck` make a service wait until the one it needs is ready, not just started. **Generated secrets.** Never put a fixed password in the file. Declare it in `configFields` with `"generate": "secret"` and a random value is created at install time. To put that value inside another setting, such as a connection string, write `{{config:KEY}}`. List every variable that holds or contains a secret in that service's `secretEnv`, so it is stored encrypted and masked. **Endpoints.** `endpoints` lists what the install screen offers to put on a domain. Use `"kind": "http"` for a web interface and `"kind": "tcp"` for a raw port. A domain is only attached if you choose one when installing; Candor Deploy never picks one for you. **The connection card.** `connection` is the card shown after the install: the addresses and keys someone needs to use the app. `source` reads a value from the running app, for example `publicUrl:umami` or `env:umami-db:POSTGRES_PASSWORD`. Mark credentials with `"secret": true` so they are hidden until revealed. `firstLogin` is for a fixed sign-in that the image ships with. **Settings.** `settings` adds a form for options people change after installing, instead of editing raw environment variables. A field with `"installStep": true` is also asked for during the install. The rule of thumb: if a person types it, it is a setting; if it is generated or derived, it is a `configField`. ## Tips - Use the publisher's official image at a pinned version, never `latest`. - Keep anything that must survive a redeploy, such as uploads and database files, in a named volume. - Install the app on a test server first, check the connection card, then use it for real. - To change a custom app, add the corrected file again with the same `id`. It replaces the earlier version in your catalog. ## Related - [Builds and configuration](/docs/builds-and-configuration/): how compose services, volumes and environment variables work. - [Multi-service apps](/docs/multi-service-apps/): managing the services of an installed app. --- # Connect a mail app to your mailbox URL: https://candordeploy.com/docs/mail-apps/ If you run a mail server on one of your servers with Candor Deploy, you can read and send mail from any app that speaks IMAP and SMTP. This page gives the settings and the steps for the common ones. ## The settings you need Open **Emails** in the sidebar and choose your mail server. On the **Overview** tab, the **Mail server** card shows the host name; **Protocol details** opens the full settings. You need: | Setting | Value | | --- | --- | | Username | Your full email address, such as `you@example.com`. The same for incoming and outgoing mail. | | Password | The mailbox's password, set when the mailbox was created under **Mailboxes**. | | Incoming (IMAP) | The IMAP host shown, port **993**, security **SSL/TLS**. | | Outgoing (SMTP) | The SMTP host shown, port **587**, security **STARTTLS**. | | Authentication | Normal password. Not OAuth. | The dashboard does not keep passwords in readable form. If you lost one, set a new one for that mailbox. Keep it in a password manager. Your domain's mail DNS records (MX, SPF, DKIM and DMARC) must be published for mail to be delivered and to stay out of spam folders. Check them on the **DNS** tab. ## iOS Apple Mail works the same way on iPhone, iPad and Mac. 1. On iPhone or iPad, open **Settings**, then **Mail**, **Accounts**, **Add Account**, **Other**, and tap **Add Mail Account**. On a Mac, open Mail, then **Mail**, **Add Account**, **Other Mail Account**. 2. Enter your name, your full email address, the password, and a description such as "Work mail". Tap **Next**. 3. Make sure **IMAP** is selected at the top. 4. Under **Incoming Mail Server**, enter the IMAP host, and your full email address as the user name. 5. Under **Outgoing Mail Server**, enter the SMTP host, and the same user name and password. iOS may label these "Optional"; they are required. 6. Tap **Next**. Checking the account can take up to a minute. Choose what to sync (Mail is enough) and tap **Save**. If it cannot verify the account, open the account, then **Advanced**, and check: IMAP on port 993 with **Use SSL** on; SMTP on port 587 with **Use SSL** on and authentication set to **Password**. If you see **Cannot Verify Server Identity**, check that the host names you entered are exactly the ones the dashboard shows. A certificate is issued for those names, not for your bare domain. If the names match and the warning stays, check the certificate on the mail server's page and [contact us](/contact/) rather than accepting a certificate you are unsure of. ## Android These steps are for the Gmail app. Other Android mail apps ask for the same settings. 1. Open Gmail, tap your profile picture at the top right, then **Add another account**. 2. Choose **Other** (not Google and not Outlook). 3. Enter your full email address and tap **Manual setup**. Automatic setup often picks the wrong port. 4. Choose **Personal (IMAP)**, enter your password and tap **Next**. 5. **Incoming server settings**: user name is your full email address, server is the IMAP host, port **993**, security type **SSL/TLS**. Tap **Next**. 6. **Outgoing server settings**: server is the SMTP host, port **587**, security type **STARTTLS**. Keep **Require sign-in** on and enter your password again. Tap **Next**. 7. Choose how often to check for mail, then tap **Next**. Gmail checks an IMAP account at the interval you chose; new mail does not arrive instantly. If you see **Couldn't open connection to server**, open the account's server settings and check 993 with SSL/TLS for incoming and 587 with STARTTLS for outgoing. ## Desktop Any desktop mail app works with the settings at the top of this page. When it offers to detect them for you, choose manual setup instead. **Thunderbird** 1. Choose **File**, then **New**, then **Existing Mail Account**. 2. Enter your name, full email address and password, and click **Continue**. 3. When it starts detecting settings, click **Configure manually**. 4. Incoming: IMAP, the IMAP host, port 993, SSL/TLS, Normal password. Outgoing: SMTP, the SMTP host, port 587, STARTTLS, Normal password. User name on both: your full email address. 5. Click **Re-test**, then **Done**. **Outlook (classic, Windows)** 1. Choose **File**, then **Add Account**. 2. Enter your email address, open **Advanced options**, tick **Let me set up my account manually**, and click **Connect**. 3. Choose **IMAP**. 4. Incoming: the IMAP host, port 993, encryption **SSL/TLS**. Outgoing: the SMTP host, port 587, encryption **STARTTLS**. 5. Enter your password, let Outlook check the account, and click **Done**. **Common problems** - **"Username and password not accepted"** when they are right: the user name must be the full email address, not just the part before the `@`. - **A certificate warning**: the host name you entered does not match the one in the dashboard. Copy it from the **Mail server** card. - **Sending fails but receiving works**: outgoing mail needs sign-in too. Turn on authentication for the SMTP server with the same user name and password. ## Nodemailer To send mail from your own app, use SMTP with the same settings. This example uses [Nodemailer](https://nodemailer.com/) for Node.js. ```bash npm install nodemailer ``` Keep the settings in environment variables, marked secret in the dashboard, never in your code: ```js import nodemailer from "nodemailer"; export const transporter = nodemailer.createTransport({ host: process.env.SMTP_HOST, // the SMTP host from the dashboard port: Number(process.env.SMTP_PORT), // 587 secure: false, // starts plain, then upgrades with STARTTLS requireTLS: true, // refuse to send if the upgrade fails auth: { user: process.env.SMTP_USER, // the full email address pass: process.env.SMTP_PASS, }, }); ``` Port 465 with implicit TLS also works: set `port: 465` and `secure: true`, and remove `requireTLS`. Check the connection when your app starts, so a wrong setting fails straight away: ```js await transporter.verify(); ``` Then send: ```js await transporter.sendMail({ from: '"Your App" ', to: "alice@example.com", subject: "Hello", text: "Plain-text body.", }); ``` Other languages use the same five things: host, port, TLS mode, user name and password. In Python: ```python import smtplib from email.message import EmailMessage msg = EmailMessage() msg["From"] = "you@example.com" msg["To"] = "alice@example.com" msg["Subject"] = "Hello" msg.set_content("Plain-text body.") with smtplib.SMTP("smtp.example.com", 587) as s: s.starttls() s.login("you@example.com", "PASSWORD") s.send_message(msg) ``` Good practice: - Create one transporter when your app starts and reuse it. A new connection per message is slow. - Send from an address on a mailbox or alias that exists on your mail server. Other From addresses are rejected by your SPF and DMARC policy. - Retry `sendMail` on a temporary network error. - If mail stops sending, check the mail server's **Health** tab, which shows the outgoing queue. ## Related - [Add a server](/docs/add-a-server/#firewall-and-ports): the ports a mail server needs open. - [Contact us](/contact/) if a mailbox will not connect. --- # Team members and roles URL: https://candordeploy.com/docs/team-members/ A workspace can have more than one person in it. Your plan does not limit how many members you invite, and every role below is available on every plan. ## Invite someone 1. Open **Settings**, then **Team**. 2. Press **Invite member**. 3. Enter the person's email address and choose a role. 4. Send the invitation by email, or copy the invitation link and send it yourself. Owners and admins can invite people. Only the owner can change someone's role. ## What each role can do | Role | Access | | --- | --- | | Owner | Everything, including billing. | | Admin | Everything except billing, including managing members and invitations. | | Member | Read, change and delete projects and their settings. No billing. | | Restricted | Nothing by default. You grant access to specific projects. | A restricted member is the way to give a contractor one project and nothing else: invite them as restricted, then grant them read or write access to that project. A grant on a project covers its deployments, domains, services and environment variables. ## Remove someone In **Settings**, under **Team**, remove the member. Their access to the workspace ends. --- # Connect an AI coding agent (MCP) URL: https://candordeploy.com/docs/connect-ai-agents/ Candor Deploy has an [MCP](https://modelcontextprotocol.io/) server. Once an agent is connected, you can ask it to deploy a repository, read a build log, set an environment variable or add a domain, and it does so through the same API the dashboard uses, with the permissions you gave it. ## The endpoint ``` https://app.candordeploy.com/api/mcp ``` The dashboard shows the same address, with copy-and-paste setup for each client, under **Settings**, then **MCP**. If the two ever differ, use the one in the dashboard. It is a Streamable HTTP endpoint. Any MCP client that supports remote servers can use it. ## Connect by signing in (recommended) Add the server to your client, then sign in when the client opens your browser. The sign-in page asks what the agent may do: - **read-only** or **full control**; - **all** of your projects, or **only the ones you pick**. There is no token to copy. Connected clients are listed under **Settings**, then **MCP**, where you can change a client's access or disconnect it. **Claude Code** ```bash claude mcp add --transport http candor https://app.candordeploy.com/api/mcp ``` More in [Deploy from Claude](/docs/connect-claude/). **Codex** ```bash codex mcp add candor --url https://app.candordeploy.com/api/mcp codex mcp login candor ``` More in [Deploy from Codex](/docs/connect-codex/). **Cursor** Add this to `~/.cursor/mcp.json`: ```json { "mcpServers": { "candor": { "url": "https://app.candordeploy.com/api/mcp" } } } ``` **VS Code** ```bash code --add-mcp '{"name":"candor","type":"http","url":"https://app.candordeploy.com/api/mcp"}' ``` **Other clients** Any client that accepts a remote MCP server URL works the same way: give it the endpoint and sign in. The name `candor` in these examples is only a label; call it what you like. ## Connect with an API token Use a token where a browser sign-in is not possible, such as in CI. 1. In the dashboard, open **Settings**, then **API tokens**. 2. Give the token a name. Turn on **Read-only** if the agent should only look. Turn on **Limit to specific resources** to confine it to the projects you choose. 3. Choose when it expires, then press **Create token**. The token is shown once. Copy it then. 4. Send it as a bearer token: ```json { "mcpServers": { "candor": { "url": "https://app.candordeploy.com/api/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } } ``` Keep tokens out of your repository. Anyone holding a token can do what the token allows. ## What an agent can and cannot do - **It acts as you, or as less than you.** The tools it sees are the ones your role allows, narrowed further by the read-only and project choices you made. - **Secrets stay masked.** A variable marked secret comes back masked to an agent, the same as in the dashboard. - **It is limited by the access you grant.** There is no plan project limit for it to hit. What it can create or change is decided by its role and the read-only and project choices you made, so grant only what it needs. - **It cannot manage credentials.** Creating tokens and changing sign-in settings are not available as tools. - **Nothing asks "are you sure?" for you.** Tools are marked as read-only or destructive so a client can warn you, but the warning is the client's job. If an agent should not be able to delete things, connect it as read-only or limit it to the projects it needs. ## What to ask Once connected, plain requests work: - "List my projects on Candor." - "Show the build log for the last deployment of storefront and tell me why it failed." - "Set `LOG_LEVEL=debug` on the api service and apply it." - "Roll storefront back to the previous deployment." Read what the agent proposes before you approve a change, as you would with any tool that can change production. --- # Deploy from Claude URL: https://candordeploy.com/docs/connect-claude/ Claude can deploy to Candor Deploy through its [MCP](https://modelcontextprotocol.io/) server. You connect once and sign in in your browser. For how access and permissions work, read [Connect an AI coding agent](/docs/connect-ai-agents/) first. ## Claude Code Run this in a terminal: ```bash claude mcp add --transport http candor https://app.candordeploy.com/api/mcp ``` Then start Claude Code and run `/mcp`. Choose `candor` and sign in. Your browser opens the Candor Deploy sign-in page, where you choose whether Claude gets read-only or full control, and all of your projects or only some. To check it worked, ask: ``` List my projects on Candor. ``` ### With an API token instead If you cannot sign in through a browser, create a token under **Settings**, then **API tokens**, and pass it as a header: ```bash claude mcp add --transport http candor https://app.candordeploy.com/api/mcp \ --header "Authorization: Bearer YOUR_TOKEN" ``` ## Claude Desktop 1. Open **Settings**, then **Connectors**. 2. Choose **Add custom connector**. 3. Paste `https://app.candordeploy.com/api/mcp` as the connector URL and sign in. ## Remove the connection ```bash claude mcp remove candor ``` That removes it from Claude Code. To revoke the access itself, disconnect the client under **Connected clients** in the Candor Deploy dashboard (**Settings**, then **MCP**), or delete the API token you created. ## If it does not connect - Check the address. The dashboard shows the exact endpoint under **Settings**, then **MCP**. - Sign in again with `/mcp` if Claude Code reports the server needs authentication. - A trial that has ended, or a plan that has lapsed, blocks deploys. See [Plans, trial and billing](/docs/plans-and-billing/). --- # Deploy from Codex URL: https://candordeploy.com/docs/connect-codex/ Codex can deploy to Candor Deploy through its [MCP](https://modelcontextprotocol.io/) server. You connect once and sign in in your browser. For how access and permissions work, read [Connect an AI coding agent](/docs/connect-ai-agents/) first. ## Connect Run these in a terminal: ```bash codex mcp add candor --url https://app.candordeploy.com/api/mcp codex mcp login candor ``` The second command opens your browser on the Candor Deploy sign-in page. Choose whether Codex gets read-only or full control, and all of your projects or only some. To check it worked, start Codex and ask: ``` List my projects on Candor. ``` ## Remove the connection ```bash codex mcp remove candor ``` That removes it from Codex. To revoke the access itself, disconnect the client under **Connected clients** in the Candor Deploy dashboard (**Settings**, then **MCP**). ## If it does not connect - Check the address. The dashboard shows the exact endpoint under **Settings**, then **MCP**. - Run `codex mcp login candor` again if Codex reports the server needs authentication. - A trial that has ended, or a plan that has lapsed, blocks deploys. See [Plans, trial and billing](/docs/plans-and-billing/). --- # The assistant and automations URL: https://candordeploy.com/docs/assistant/ The assistant is a chat in the dashboard that can look at and work on your apps for you: read a build log, check why a service is down, redeploy, or open a pull request with a fix. It uses an AI agent you bring, and it can only do what you allow. It is off until you turn it on. Open **Agents** in the sidebar to start. ## What you need - **Your own AI account or API key.** The assistant runs **Claude Code** or **Codex**, signed in to your own account, or a **Custom API** connection with your own key. Candor Deploy does not supply a model. Your provider's prices, limits and data policies apply to everything the assistant sends it. - **A server to run it on.** The agent runs on one of your workspace's servers, not on Candor Deploy's systems. You need admin access to that server. It must be Linux on x64 or ARM64. - **The agent installed on that server.** Install the Claude Code or Codex command-line tool on the server before you connect it. Codex also needs Node.js on the server. Candor Deploy installs the small service that connects the agent to the dashboard when you turn the assistant on. The agent uses some of the server's memory and CPU while it works, alongside your apps. ## Turn it on 1. Open **Agents** and press **Enable Agents**. 2. Choose the server the assistant runs on. 3. Choose what it may do. This is the same permission screen used when you [connect an AI agent over MCP](/docs/connect-ai-agents/): pick the projects, servers and repositories, and the operations. Start with **Read-only** if you just want it to look. 4. Press **Enable assistant**. Cancelling leaves it off. 5. Open **Connections** from the menu at the top right (or **Settings**, then **Assistant**) and connect an agent: - **Claude Code** or **Codex**: sign in with your account using one of the methods shown. - **Custom API**: enter a **Connection name**, the **API base URL**, the **Model ID** and your **API key**. The API must support the Responses format and tool calling. The key is stored on the assistant's server and never shown again. 6. Choose a model and send your first message. ## Use it Ask in plain language: "why did the last deploy of shop fail?", "restart the worker", "what is using the most memory on my server?". Replies stream in. Each tool the assistant uses is shown beside the answer; open it to see the request and the result. Apps, deployments and servers it mentions appear as cards linking to their pages. Shortcuts open the assistant with the details already filled in: - **Investigate with AI** on a failed deployment. - **Fix with AI** on an open issue in **Monitoring**. - **AI health report** in the **Monitoring** header, for a read-only review of your apps, deployments and servers. The request waits for you to read it and press **Send**. Opening a shortcut does not run anything. You can attach screenshots (PNG, JPEG or WebP, up to four images of 4 MB each) if your model accepts images. **Stop** ends the current reply. **Conversations** lists past chats; **New chat** starts a fresh one. ### In Slack, Discord, Teams or Telegram You can also talk to your assistant from a chat app, with `/candor ask`. Each person connects their own assistant to the bot. See [Chat apps](/docs/chat-apps/#talk-to-your-assistant). ### Specialist agents Next to the general assistant you can create agents for one job, such as a logs investigator or a security reviewer. Each has its own instructions, model and access, limited to the apps, servers and repositories you pick. Read-only is the default, and its instructions cannot give it more access than you assigned. Use the **+** beside **Agents** to create one. ## Permissions and safety - Everything the assistant does goes through the same API and permission checks as any connected MCP client. It cannot give itself more access. - If a task needs more, it shows an **Access requested** card with the reason. **Review permissions** opens the permission screen; nothing changes until you save. After changing access, start a new chat. - Write access means the assistant can carry out those operations without asking each time. Choose it deliberately. - Requests and tool results, including logs, are sent to your AI provider. - A deploy or restart the assistant starts runs like any other: the app restarts, and stopping the assistant does not undo it. To turn it off, open **Settings**, then **Assistant**, and press **Disable assistant**. Its access is revoked and running replies stop. Your chat history stays private to your account. ## Automations An automation connects an event on one of your apps to an investigation and, if you allow it, a response. Open **Automations** from the top right of the assistant and press **Create automation**. A flow has four steps: 1. **Trigger**: choose an app and either **Deployment failed** or **Service unhealthy**. Health triggers fire on confirmed incidents, such as an outage or a crash loop, not on deliberate stops or normal deploys. 2. **Investigate**: choose a specialist agent with access to the app. You can let it read the app's repository and add guidance for this flow. The investigation gets temporary, read-only access. 3. **Respond**: choose a mode and what the flow may do. 4. **Notify**: results always appear in the agent's conversation. You can also send a status update to your notification channels, and set run limits. New flows start paused. Save it paused, or enable it when you are ready. The assistant can also prepare flows for you in a chat; you review and enable them with **Enable & continue**. ### Response modes | Mode | What happens | | --- | --- | | **Investigate & notify** | The agent investigates and reports. It takes no action. | | **Ask before fixing** | If the evidence supports an allowed action, you are asked to approve it in the conversation or in **Run history**. The request expires after one hour. | | **Fix automatically** | The flow may apply one allowed action when the investigation recommends it and the incident is still current. | ### What a flow may do | Permission | What it does | | --- | --- | | **Restart services** | Restarts the app's current deployment after a confirmed health incident. | | **Redeploy the app** | Rebuilds the current commit through the normal deploy pipeline. | | **Commit a code fix** | Puts the proposed file changes in one commit on a new branch. | | **Open a pull request** | Pushes that commit and opens a draft pull request. | A restart or redeploy restarts the app, so expect a short interruption. After one, the flow shows **Verifying health** and then **Healthy** only once fresh checks confirm it; otherwise **Needs attention**, and the flow pauses rather than trying again and again. Code fixes need the app's GitHub repository connected, are limited to small text changes, and never touch the existing branch: review the pull request and its CI before you merge. Flows cannot run arbitrary shell commands, install packages or change environment variables. ### Limits - By default a flow runs at most 5 investigations a day, with 30 minutes between them. You can set 1 to 20 a day and a gap of 10 minutes to 24 hours. - One incident causes one run, and only one investigation or action runs per app at a time. - An investigation stops after 10 minutes. Verifying an action waits up to 15 minutes. - Pausing a flow cancels pending investigations and approvals. **Pause all automations** in **Settings**, then **Assistant**, pauses every flow while leaving ordinary chats working. - The assistant's server must be running for automations to work. Start safely: on a test app, enable **Deployment failed** with **Investigate & notify**, break a deploy on purpose, and read what the agent finds. Try **Ask before fixing** next. Leave **Fix automatically** off until you trust the results. ## If something is wrong - **The agent shows as unavailable.** Install or update Claude Code or Codex on the assistant's server, then press **Refresh** in **Connections**. - **Your provider rejects the sign-in.** Reconnect it in **Connections**. - **The assistant cannot reach its server.** Check the server on its page under **Servers**. See [Add a server](/docs/add-a-server/#if-the-connection-fails). Still stuck? [Contact us](/contact/). ## Related - [Chat apps](/docs/chat-apps/): use the assistant and deploy commands from Slack, Discord, Teams or Telegram. - [Connect an AI coding agent (MCP)](/docs/connect-ai-agents/): use Claude Code, Codex or another client from your own computer instead. - [Troubleshooting deploys](/docs/deploy-troubleshooting/). --- # Chat apps: Slack, Discord, Teams and Telegram URL: https://candordeploy.com/docs/chat-apps/ A chat app connection puts a bot in Slack, Discord, Microsoft Teams or Telegram. Your team can then list projects, check the latest deploy, redeploy or restart, and talk to their own [assistant](/docs/assistant/), without leaving the conversation. The bot does not share anyone's access. Each person links their own Candor Deploy account and approves what the bot may do for them. The bot's command is `/candor`. Bots set up before November 2026 used `/openship`, which still works, so you don't need to change an existing bot. Slack bots keep the slash commands you created in Slack, so add `/candor` there if you want the new name. ## How it works 1. You create a bot with your chat provider and save its credentials in Candor Deploy, with the exact channels or chats it may answer in. 2. You enable the bot. New connections start paused. 3. Each person sends `/candor link` and approves permissions in the dashboard. 4. They can then use the [commands](#commands). Talking to the assistant is a separate opt-in (see [Talk to your assistant](#talk-to-your-assistant)). Open **Settings**, then **Chat apps**, to add a connection. Only workspace owners and admins can add or change one. ### Choose the bot's role When you add a connection, choose what the bot does: - **Control plane**: project, status, logs, restart and redeploy commands. No AI is involved. - **Assistant**: conversations with each person's own connected assistant. Choose one or both. `/candor help` only shows the commands for the roles you chose. If you want separate bots for deploy commands and for the assistant, create a separate bot with your provider for each connection. ### Connection method Slack, Discord and Telegram default to **Direct connection**: Candor Deploy connects out to the provider, so there is no URL to configure on the provider's side. Microsoft Teams always uses **Webhook**: you copy the connection's **Bot webhook URL** into the bot's settings. You can choose **Webhook** for the others too, but use one method per bot, never both. ### Link your account 1. In an allowed channel, send `/candor link`. The bot sends instructions, then a separate message with a link. 2. Open the link, sign in, pick the same workspace, and approve the permissions. Read-only is enough for projects, status and logs; restart and redeploy need write access. 3. The dashboard gives you a `/candor verify ` command. Send it from the same chat account, in the same conversation, within five minutes. Opening someone else's link does not link your chat account to their access. To stop, send `/candor unlink`. The grant is also listed under **Settings**, then **MCP**, where you can change or revoke it. ## Slack Replies to slash commands are private to the person who sent them. 1. At [api.slack.com/apps](https://api.slack.com/apps), create an app for your workspace. Use a new app just for this connection. 2. In **OAuth & Permissions**, add the bot scopes `commands` and `chat:write`. Install the app and copy the **Bot User OAuth Token** (`xoxb-…`). 3. Turn on **Socket Mode**. In **Basic Information**, under **App-Level Tokens**, create a token with `connections:write` and copy it (`xapp-…`). 4. Find your workspace ID (`T…`) in Slack's browser address, and each channel's ID (`C…`) in its details. Invite the bot to those channels. 5. In **Slash Commands**, create `/candor`. With Socket Mode on, no request URL is needed. Use `help` as the usage hint. 6. In the dashboard, open **Settings**, then **Chat apps**, choose Slack, and fill in: | Field | Value | | --- | --- | | Slack workspace ID | The `T…` ID. | | Bot token | The `xoxb-…` token. | | Socket Mode app token | The `xapp-…` token. | | Allowed channel IDs | The channel IDs, separated by commas (up to 20). | 7. Press **Save connector**, then **Enable bot**, and wait for **Connected**. 8. In an allowed channel, send `/candor help`, then link your account. Slash commands do not work inside threads; use the channel's message box. **Command suggestions.** Slack shows one entry per slash command, so separate commands such as `/candor-projects` and `/candor-status` can be added too. From the connection's menu, open **Native commands**, press **Update connector**, then **Copy definitions**, and merge them into `features.slash_commands` in the Slack app's **App Manifest**. Repeat after you change the bot's roles. **Mentions and direct messages for the assistant.** Add the scope `app_mentions:read` (and `im:history` for direct messages), turn on **Event Subscriptions** with the bot event `app_mention` (and `message.im`), and reinstall the app. Add the direct conversation's `D…` ID to the allowed channel IDs. Mention the bot in thread replies too, so Slack passes them on. **Webhook instead.** Choose **Webhook**, enter the app's **Signing secret** from **Basic Information**, save and enable, then use the **Bot webhook URL** as the slash command's request URL. Turn Socket Mode off for that app. **If it does not answer:** check the app is installed, the connection is enabled and connected, the channel ID is in the allowed list, and both the bot and you are in the channel. ## Discord Replies are private to the person who sent the command. 1. In the [Discord Developer Portal](https://discord.com/developers/applications), create an application just for this connection. 2. In **General Information**, copy the **Application ID**. Leave **Interactions Endpoint URL** empty. 3. In **Bot**, create the bot and copy its token. Keep it private. 4. Install the app on your server with the `applications.commands` and `bot` scopes. Do not give it Administrator. 5. In Discord, turn on **Developer Mode** under **User Settings**, then **Advanced**. Right-click your server to copy its ID, and each allowed channel to copy its ID. 6. In the dashboard, open **Settings**, then **Chat apps**, choose Discord, and fill in: | Field | Value | | --- | --- | | Discord server ID | Your server's ID. | | Application ID | From **General Information**. | | Bot token | From **Bot**. | | Allowed channel IDs | The channel IDs, separated by commas. | 7. Press **Save connector**, then **Enable bot**, and wait for **Connected**. The `/candor` command is registered in your server when you enable or save the connection. Type `/candor` and pick a subcommand, such as `projects` or `ask`; Discord asks for its argument. If an older bot's menu is out of date, choose **Native commands**, then **Refresh command menu**, from the connection's menu. Only slash commands reach the bot. Ordinary channel messages and direct messages are not read. **Webhook instead.** Choose **Webhook**, enter the **Application public key** from **General Information**, save and enable, then paste the **Bot webhook URL** into the app's **Interactions Endpoint URL**. To go back to a direct connection, clear that URL in Discord first. **If it does not answer:** check that **Interactions Endpoint URL** is empty (for a direct connection), the channel ID is allowed, and members have Discord's **Use Application Commands** permission there. ## Teams Replies are visible to everyone in the conversation. Use a personal chat with the bot for anything private. Teams needs more setup than the others. You need to be able to register an app in Microsoft Entra, create an Azure Bot, and install a custom app in your Teams tenant. You also need the `conversation.id` and `serviceUrl` from a real message sent to the bot, so you need a way to read one incoming bot message before you point the bot at Candor Deploy. 1. Create a **single-tenant** app in Microsoft Entra. Note its **Application (client) ID** and **Directory (tenant) ID**. 2. Under **Certificates & secrets**, create a client secret and copy its **Value** (not its ID). 3. Create an **Azure Bot** with that application ID and tenant, as single-tenant, and turn on the **Microsoft Teams** channel. 4. In the Teams Developer Portal, create a Teams app, add the bot by its application ID, and install it where you need it. 5. Send the bot a message and, from that incoming message, note `conversation.id` and `serviceUrl` (a Microsoft address under `smba.trafficmanager.net` or `smba.infra.teams.microsoft.com`). A channel link is not the same thing. 6. In the dashboard, open **Settings**, then **Chat apps**, choose Microsoft Teams, and fill in: | Field | Value | | --- | --- | | Microsoft Entra tenant ID | The directory (tenant) ID. | | Bot application ID | The application (client) ID. | | Client secret | The secret's value. | | Teams connector service URL | The `serviceUrl` you noted. | | Allowed conversation IDs | The `conversation.id` values, separated by commas. | 7. Press **Save connector**, then **Enable bot**. 8. Copy the connection's **Bot webhook URL** into the Azure Bot's **Messaging endpoint** and save. 9. In a personal chat with the bot, send `/candor help`. In a channel, mention the bot first. Multi-tenant bots and government clouds are not supported. Conversations with different service URLs need separate connections. **If requests are rejected:** check the tenant and application IDs, the exact conversation ID and service URL, and whether the client secret has expired. ## Telegram Replies are visible to everyone in the chat. Start with a private chat with the bot if project details should stay private. 1. In Telegram, open [BotFather](https://t.me/BotFather), send `/newbot`, and keep the token it gives you private. Use a new bot just for this connection. 2. Send your new bot a message. For a group, add the bot and send `/candor@YourBot help`. 3. Find the chat ID: in a terminal, run the command below with your token, and read `message.chat.id` for the right chat. Group IDs are negative; keep the minus sign. Do not share the full output. ```bash curl "https://api.telegram.org/bot/getUpdates" ``` 4. In the dashboard, open **Settings**, then **Chat apps**, choose Telegram, keep **Direct connection**, and fill in: | Field | Value | | --- | --- | | Bot token from BotFather | The token. | | Allowed chat IDs | The chat IDs, separated by commas. | 5. Press **Save connector**, then **Enable bot**, and wait for **Connected**. Stop running `getUpdates` yourself from now on. 6. Send `/start` and tap **Connect account**, or send `/candor link`. Telegram gets a command menu: type `/` to pick commands such as `/projects`, `/status` or `/ask`. `/projects` shows buttons for each project; **Restart** and **Redeploy** buttons still need **Confirm**. In a group, address the bot: `/projects@YourBot`. Buttons only work for the person who asked for them. A bot that already has a webhook set cannot use a direct connection. Use a new bot, or remove the old webhook only if nothing else depends on it. Only one connection may use a bot at a time. **Webhook instead.** Choose **Webhook**, enter a random **Webhook secret** of 16 or more letters, numbers, `_` or `-`, save and enable, then register the **Bot webhook URL** with Telegram's `setWebhook`, using the same secret as `secret_token` and `allowed_updates` set to `["message","callback_query"]`. **If it does not answer:** check the chat ID (it can change when a group becomes a supergroup), that the connection is enabled, and in groups that the command is addressed to your bot. ## Talk to your assistant 1. Turn on the [assistant](/docs/assistant/) in the same workspace and connect your agent. 2. An owner or admin selects **Assistant** in the connection's role settings, saves, and enables it. 3. Link your chat account if you have not already. 4. In the connection's **Your assistant** row, press **Connect my assistant** and choose your agent and model. Each person does this for themselves; one person's assistant is never shared with the channel. 5. Send `/candor ask How are my apps doing?`. In a private Telegram or Teams chat you can also just write to the bot. In Slack, mentions and direct messages work after the extra setup above. In Discord, use `/candor ask` and type in the **message** field. Each reply links to the full conversation in the dashboard, where you can see tool activity and review permission requests. `/candor chat` opens the current conversation there; you can carry on in either place. The assistant uses the permissions you approved for the assistant, which are separate from the permissions for deploy commands. With write access, the assistant may restart or redeploy without the `confirm` step that commands need. Only the answer is posted in chat, but an answer can summarise private details about your apps. In Telegram and Teams, other people in the conversation can see it. **Disconnect my assistant** stops chat access without turning off your assistant in the dashboard. A chat turn stops after ten minutes. Stopping a turn does not undo anything it already did. ## Commands Write commands as `/candor `. Replace `` with an ID from `/candor projects`, without the angle brackets. **Account and help** (every bot) | Command | What it does | | --- | --- | | `/candor start` | Opens the welcome menu and quick actions. | | `/candor help` | Shows every command this bot accepts. | | `/candor link` | Connects your own Candor Deploy account and lets you choose its permissions. | | `/candor verify ` | Finishes linking, with the code from the dashboard, in the original conversation. | | `/candor unlink` | Disconnects your chat account and revokes its access. | **Projects and logs** (Control plane) | Command | What it does | | --- | --- | | `/candor projects` | Lists up to 20 projects you can access, with their IDs. | | `/candor status ` | Shows the latest deployment. This is not a live health check; open the project for that. | | `/candor logs ` | Gives you a link to the project's logs in the dashboard. Log contents are not posted in chat. | **Deployments** (Control plane) | Command | What it does | | --- | --- | | `/candor redeploy ` | Asks to deploy the latest source through the normal pipeline. | | `/candor restart ` | Asks to restart the running deployment. | | `/candor confirm ` | Confirms the requested action. Send it within five minutes, from the same account and conversation. | **Assistant** (Assistant role, after you connect your assistant) | Command | What it does | | --- | --- | | `/candor ask ` | Talks to your connected assistant. | | `/candor new` | Starts a fresh conversation here. | | `/candor stop` | Stops the assistant's current reply. | | `/candor chats` | Lists your recent conversations from this chat. | | `/candor resume ` | Continues one of those conversations, with its history. | | `/candor chat` | Opens the current conversation in the dashboard. | `/candor project list`, `project get`, `project logs`, `project restart` and `project redeploy` also work, as longer forms of the project commands. Restart and redeploy always ask for confirmation first. Both restart your app, so expect a short interruption. A confirmation is refused if the deployment, the connection settings or your linked account changed in the meantime, and permissions are checked again when the action runs. Sending the same confirmation twice does not deploy twice. If a reply never arrives after a restart or redeploy, check the project's deployment history in the dashboard before trying again. ## Pause or remove a connection **Pause** on a connection stops the bot answering. Removing a connection deletes its stored bot credentials and everyone's links to it. For a webhook connection, also remove the URL from the provider's settings. Bot credentials are encrypted and never shown again after you save. To change them, open the connection's **Settings** and enter new values; leave a field blank to keep the saved one. The provider of a connection cannot be changed; add a new connection instead. ## Related - [The assistant and automations](/docs/assistant/) - [Connect an AI coding agent (MCP)](/docs/connect-ai-agents/) - [Team members and roles](/docs/team-members/) --- # Scheduled jobs URL: https://candordeploy.com/docs/scheduled-jobs/ A job runs a command on one or more of your servers: every night, once at a set time, only when you press a button, or after something happens, such as a failed deploy. Every run is kept with its result, how long it took and its output. Use jobs for things like a nightly database dump, warming a cache, or a cleanup script. Find them under **Jobs** in the sidebar. ## Create a job 1. Open **Jobs** and press **New job**. 2. Under **Basics**, give it a **Name** and enter the **Command**. 3. Under **Target servers**, pick one or more of your servers. The command runs on each one. 4. Under **Schedule**, choose **When to run**: - **On a schedule**: enter a cron expression (see below). - **Once**: pick the date and time in **Run at**. - **Manual**: it runs only when you press **Run now**, or when another job or an event starts it. 5. Fill in the optional sections you need, then press **Create job**. The summary on the right shows what you are about to save. ### Where the command runs The command runs on the server itself, over the same SSH connection Candor Deploy uses to manage it, as the user you connected with. It is not run inside one of your app containers. To run something in a container, use `docker run --rm ` as the command. Because a job can run anything on the server, creating, editing or reading a job needs admin access to all of its target servers. Workspace owners and admins have it. See [Team members and roles](/docs/team-members/). ## Schedules (cron) A schedule is a standard five-field cron expression. Times are in UTC. ``` ┌───────── minute (0–59) │ ┌─────── hour (0–23) │ │ ┌───── day of month (1–31) │ │ │ ┌─── month (1–12) │ │ │ │ ┌─ day of week (0–6, Sunday is 0) * * * * * ``` | Cron | Runs | | --- | --- | | `0 3 * * *` | every day at 03:00 UTC | | `*/15 * * * *` | every 15 minutes | | `0 * * * *` | every hour, on the hour | | `0 2 * * 0` | every Sunday at 02:00 UTC | | `30 4 1 * *` | at 04:30 UTC on the 1st of each month | The expression is checked when you save. ## Optional settings **Reliability.** - **Timeout (s)**: stop the run if it takes longer than this. - **Max attempts** and **Backoff (s)**: retry a failed run, waiting this many seconds between attempts. One attempt means no retry. **Environment.** Add **Environment variables** the command can read, one by one, or with **Paste .env** or **Upload .env**. Put passwords and tokens under **Secrets** instead: they are encrypted, and once saved they are not shown again. To change them, use **Replace secrets**. **Dependencies & triggers.** - **Run after**: run this job when the selected jobs succeed. - **Event triggers**: run it when something happens in your workspace: a deploy succeeded or failed, a backup succeeded or failed, a restore completed, a certificate could not be renewed, or a domain's DNS check failed. **Notifications.** Choose channels and which run results to send to them (by default, failures). This overrides your general notification settings for this job. Channels are set up under **Monitoring**, then **Notifications**. ## Run, watch and change a job - **Run now** starts a run straight away. Manual runs are kept in the history like scheduled ones. - Open a job to see its settings and its **Runs**. Open a run to see its output. A run in progress streams its output live. - **Edit** changes any setting. **Disable** stops the schedule without deleting the job; **Enable** turns it back on. **Delete** removes it. ## Run an Actions workflow on a schedule A job can start a saved [Actions](/docs/actions/) workflow instead of a command. 1. In **New job**, switch to the workflow tab, or choose **Schedule with Jobs** from a workflow. 2. Choose the workflow. Only enabled workflows with a manual trigger (`workflow_dispatch`) can be chosen. 3. Fill in the workflow's inputs, and choose a schedule or event as above. The workflow keeps its own runners, secrets and storage. The job only decides when it starts. The run history links to the Actions run, where you see each job, its logs and the option to cancel. ## Things to know - A job uses the target server's memory, CPU and disk, alongside your apps. Schedule heavy work for quiet hours. - A job does not copy anything off the server unless your command does. If your command writes a dump to the server's disk, that file is still on the same server. - If a server cannot be reached when a job is due, that run fails and the failure is recorded in the history. ## Related - [Actions](/docs/actions/): CI workflows on your own servers. - [Add a server](/docs/add-a-server/): connect a server for jobs to run on. --- # Actions: CI workflows on your servers URL: https://candordeploy.com/docs/actions/ Actions runs CI workflows, such as tests and builds, written in GitHub Actions YAML. The jobs run on **runners**, which are servers in your workspace: one you connected, or a Candor Cloud server. Runs use that server's memory, CPU and disk, alongside anything else on it. Open **Actions** in the sidebar. It has three parts: **Workflows**, **Runners** and the runs of each workflow. Actions works with repositories on github.com. ## 1. Add a runner 1. Open **Actions**, then **Runners**, and press **Add runner**. 2. Choose the server the jobs should run on. Candor Deploy checks its operating system, CPU architecture, and whether Git, Node.js and Docker are present. 3. Choose a **Default environment**: - The **Ubuntu** preset: a ready-made Linux container image with Node.js and Git. Needs Docker on the server, which every server set up by Candor Deploy has. - **Linux**: runs directly on the server with the tools installed on it. - **Custom image**: a Docker image of your own. It needs Node.js and Git. 4. Under **Advanced settings**, set **vCPU per container**, **Memory per container** and **Concurrent jobs**, so builds leave room for your apps. CPU and memory limits apply to container jobs; jobs on the **Linux** environment use the server's resources directly. 5. Save. Each job can still pick its own container image with `jobs..container`. The image must contain the shell and tools its steps use. Two options need care: - **Allow Docker access** lets jobs build Docker images. It gives the workflow access to that server's Docker engine, and so to your other containers on it. Turn it on only for repositories you trust. - **Enable CPU emulation** installs QEMU on the server so a job can run for another CPU architecture, such as `arm64` on an `x64` server. Emulated jobs are slower. A runner on a server runs whatever the workflow tells it to. Only connect repositories you trust. If you want CI kept away from your apps, use a separate server for it. ## 2. Connect a workflow Workflows live in your repository. Where the file is decides how it runs: - **`.github/workflows/`**: GitHub runs the workflow as usual, with its checks, secrets, environments, artifacts and caches. Jobs whose `runs-on` labels match your runner are sent to it. This needs GitHub access that can manage runners: a GitHub App with **Actions** and **Administration** write permission, or a suitable token. - **`.openship/workflows/`**: Candor Deploy runs the workflow itself and GitHub ignores the folder. Use this to run CI only here, even with GitHub Actions turned off. (The folder name comes from Openship, the open-source platform Candor Deploy is built on.) To connect one: 1. Open **Actions** and press **Add workflow**, or open a project and its **Actions** tab. 2. Choose the repository and branch. The workflows found are listed, with a diagram of how their jobs depend on each other. Select one or more. 3. Edit if you need to: in the diagram, as a list, or as YAML. All three edit the same draft. 4. In **Run settings**, choose the runners and the triggers. 5. In **Access**, choose who may start runs (see below). 6. Review the GitHub connection under **Checks**, choose notifications if you want them, and save. If you edited the file, you review the change and commit it back to GitHub. To send a job from a `.github/workflows/` file to your runner, use these labels: ```yaml runs-on: [self-hosted, openship, linux, x64] ``` A job with `runs-on: ubuntu-latest` stays on GitHub's own runners. A minimal workflow that runs only in Candor Deploy: ```yaml # .openship/workflows/ci.yml name: CI on: push: branches: [main] workflow_dispatch: permissions: contents: read jobs: test: runs-on: [self-hosted, openship, linux] steps: - uses: actions/checkout@v4 - run: npm ci - run: npm test ``` For `.openship/workflows/`, a push starts a run when your workspace's GitHub App receives push events. Results are reported on the commit as checks if the App has **Checks: write** permission. ## Who can run workflows Set this in the **Access** step: - **Who can run**: **Only my account** (the default), selected GitHub users, repository collaborators with write access, or authorized workspace members. - **Approval for each run** (the default): an admin reviews the commit and the runners before any runner starts. Open the run's **Approvals** tab and choose **Approve this attempt**. A rerun needs a new approval. - **Automatically allow eligible users**: skips the review for the people you allowed. Pull requests from forks are not run on your runners. ## Triggers **When to run** edits the workflow's `on` rules: - **Git push**: commits pushed to matching branches or paths. - **Pull requests** from the same repository. - **Cron schedules**, in UTC. - **Manual & Jobs**: the **Run** button, with inputs you define. A [scheduled job](/docs/scheduled-jobs/) can also start the workflow on a schedule, once, or after an event. - **Webhook**, for `.openship/workflows/` files: turn on `repository_dispatch`. The workflow page shows its endpoint. Call it with an API token from **Settings**, then **API tokens**: ```http POST https://app.candordeploy.com/api/actions/workflows/WORKFLOW_ID/dispatch Authorization: Bearer YOUR_API_TOKEN Content-Type: application/json { "eventType": "release", "clientPayload": { "version": "1.2.3" } } ``` Schedules in `.openship/workflows/` files run at most every five minutes. Schedules in `.github/workflows/` files are run by GitHub. ## Make deploys wait for CI Open the project, then its **Actions** tab, and choose how deploys relate to workflows: - **Manual deployments**: workflows run on their own; you deploy when you choose. - **Deploy on push**: each push deploys through the normal pipeline, whatever CI says. - **Deploy after Actions pass**: a push deploys only once every required workflow has passed for that exact commit. A required workflow must be enabled, belong to the project's repository, and run on every push to the deploy branch. Pending and failed checks show in the project's **Actions** tab. You can still deploy by hand at any time. ## Runs and logs Each run records the commit and the workflow definition it used. The run page lists jobs and steps on the left and logs on the right; **Topology** shows the same run as a diagram. **Run again** starts a new attempt of the same revision. **Cancel run** stops it and cleans up. For `.github/workflows/` files, live logs open on GitHub, and finished logs and artifacts are also available here. ## Artifacts and cache `.github/workflows/` files use GitHub's artifact and cache storage. `.openship/workflows/` files support `actions/upload-artifact@v4`, `actions/download-artifact@v4` and `actions/cache@v4`. Choose an S3-compatible storage destination for them in **Run settings**. Workflow code never sees that storage's credentials. ## Limits For workflows Candor Deploy runs itself (`.openship/workflows/`): - Up to 256 jobs per run, after matrix expansion. - A job times out after 60 minutes by default, and can ask for up to 360. - Logs are kept up to 8 MiB per job. Finished runs are kept for 30 days. - One stored artifact or cache object can be up to 1 GiB, with 20 GiB in total per workspace. Artifacts are kept 7 days by default, up to 30. - Protected environments and attestations need `.github/workflows/` files. Runners are Linux servers. Windows runners and GitHub Enterprise are not supported. ## Related - [Scheduled jobs](/docs/scheduled-jobs/): run a workflow or a command on a schedule. - [Add a server](/docs/add-a-server/): connect a server to use as a runner. - [Builds and configuration](/docs/builds-and-configuration/): how the deploy itself builds your app. --- # Troubleshooting deploys URL: https://candordeploy.com/docs/deploy-troubleshooting/ Start with the log. Almost every failed deploy says why, in the last lines before it stopped. ## Where the logs are - **Build log.** Open the project's **Deployments** tab and open the deployment. The log is the record of that build, and it streams live while a deployment runs. - **Runtime logs.** Open **Monitoring & Logs**, then **Logs**. This is your app's own output: what it printed when it started and since. - **Request logs.** The same tab shows the HTTP requests that reached your domains, with status codes. A build that fails does not replace the version that is running. You can fix the problem and deploy again without your site going down in between. ## The build failed Read the last lines of the build log. The usual causes: - **Wrong build command or working directory.** Check them on the project's configuration screen. In a monorepo, check that the right app was chosen. - **A variable is missing at build time.** Frameworks that read variables during the build, such as `NEXT_PUBLIC_` values in Next.js, need them set in the project environment before the build. - **The framework was detected wrongly.** Correct it on the configuration screen, or add a `Dockerfile` so there is nothing to detect. See [Builds and configuration](/docs/builds-and-configuration/). - **The build ran out of memory.** Large builds can exceed what the server has free. Try a smaller build (fewer parallel jobs, no source maps), build with a `Dockerfile` that does less work, or give the server more room. ## The build passed but the app does not respond - **The port.** Your app must listen on the port in the `PORT` environment variable, on `0.0.0.0`. An app listening on `localhost`, or on a port of its own choosing, starts but cannot be reached. - **It crashed on start.** Open the runtime logs. A missing environment variable or a database that could not be reached is usually on the first lines. - **The server ran out of memory.** The projects on a server share its memory. If the runtime log ends abruptly with no error of the app's own, the server may be full. Grow the server to a larger size (managed servers), move some projects to another server, or add a server. See [Where your apps run](/docs/how-candor-deploy-works/#where-your-apps-run). - **No domain is attached.** An app with no domain builds and starts, but nothing routes to it. Add one under **Domains & Routes**. ## The domain will not verify See [Domains and HTTPS](/docs/deploy-domains-and-https/#verify). In short: check that the DNS record matches the one in the panel exactly, remove old records for the same hostname, wait for DNS to spread, and press **Verify** again. ## The deploy was refused - **"Your free trial has ended."** Choose a plan under **Billing**. Running apps are not affected. See [Plans, trial and billing](/docs/plans-and-billing/). - **A host mount was refused.** Volumes must be named volumes such as `data:/data`. Paths on the host, the Docker socket and privileged containers are not allowed. ## Data disappeared after a deploy A container's filesystem is replaced on every deploy. Files your app writes must go to a volume or a database. See [persistent storage](/docs/builds-and-configuration/#persistent-storage). ## Changes to environment variables did nothing Saving a variable does not restart the app. Press **Apply environment changes**, or redeploy. Values used during the build need a redeploy that rebuilds. ## Going back If a new version is misbehaving, roll back first and investigate second: **Deployments**, open the menu on the last good deployment, **Rollback to this version**. Rolling back does not undo database changes. See [Rollback](/docs/how-candor-deploy-works/#rollback). ## Still stuck [Contact us](/contact/) with the project name and the time of the failed deployment. Do not send secrets or tokens. ## Guides & blog --- # Scheduled Jobs for Web Apps: Cron Patterns and the Pitfalls That Bite URL: https://candordeploy.com/blog/scheduled-jobs-cron-web-apps-patterns-pitfalls/ **TL;DR:** The simplest reliable way to run scheduled work for a web app is to expose a protected endpoint and have something call it on a cron schedule. Make every job idempotent, keep it short, log what it did, and decide up front what should happen if it runs twice, runs late, or doesn't run at all. Almost every web app grows a list of things that should happen "every night" or "every five minutes": send a digest email, expire old sessions, refresh a cache, sync with a third-party API, clean up temporary files. On your laptop, you'd reach for `crontab -e`. On a hosted platform, the container your app runs in can be replaced on any deploy, so a crontab inside it is fragile. This guide covers the patterns that hold up and the mistakes that show up again and again. ## What is a cron schedule, and how do you read one? A cron expression is five fields: minute, hour, day of month, month and day of week. A star means "every". - `*/5 * * * *` runs every five minutes. - `0 3 * * *` runs at 3:00 every day. - `30 8 * * 1-5` runs at 8:30 on weekdays. - `0 0 1 * *` runs at midnight on the first of each month. Two details trip people up. First, when both day of month and day of week are set, classic cron runs the job when *either* matches, not both. Second, the schedule is evaluated in some timezone, and it's often UTC on servers. "Every day at 3 AM" in UTC is a different local hour in winter and summer for most of the world. If the wall-clock time matters to your users, write it down next to the schedule and check which zone your scheduler uses. ## Why trigger jobs over HTTP instead of a crontab in the container? There are two common ways to run scheduled work for a hosted app: 1. **A long-running process with its own scheduler**, such as a library that keeps a timer loop inside your app or a separate background process. 2. **An external scheduler that calls an endpoint in your app**, like `POST /jobs/send-digest`, on a schedule. The HTTP approach has real advantages for small apps. The job runs inside your normal web process, so it uses the same code, configuration, database connection and logging as everything else. There's no second process to size, deploy or keep alive. And the schedule lives outside the container, so a redeploy doesn't wipe it. The tradeoff is that the job has to fit within a request. Anything that takes more than a short while should be split into smaller chunks or handed to a queue, which we'll come back to below. This is the model Candor Deploy uses for its scheduled jobs: you add a cron schedule and a path, and the platform calls that path in your app. The portal shows run history and a run-now button, so you can see what fired and when ([scheduled jobs changelog](https://candordeploy.com/changelog/scheduled-jobs/?utm_source=blog&utm_medium=organic&utm_campaign=scheduled-jobs-cron-web-apps-patterns-pitfalls)). ## How do you stop strangers from triggering your job endpoint? A job endpoint is a URL, and URLs get found. If `/jobs/send-digest` is reachable and unprotected, anyone can make your app send a digest whenever they like. Protect it in layers: - **Require a shared secret.** The scheduler sends a header with a secret value, and your handler rejects any request without the right one. Store the secret as an environment variable, never in the repository, and compare it with a constant-time comparison function. - **Keep the call off the public internet where you can.** If the scheduler can reach your app on an internal address, the endpoint doesn't need to be exposed publicly at all. - **Accept only the method you expect.** Use `POST`, so a crawler following links can't trigger it with a `GET`. On Candor Deploy, scheduled job requests carry a header secret so only the platform can trigger them, and they go to your app's internal address rather than through the public internet ([scheduled jobs changelog](https://candordeploy.com/changelog/scheduled-jobs/?utm_source=blog&utm_medium=organic&utm_campaign=scheduled-jobs-cron-web-apps-patterns-pitfalls)). Your handler should still check the header. ## Why does every scheduled job need to be idempotent? Because sooner or later it will run twice. A retry after a timeout, someone pressing a run-now button during testing, or two overlapping runs all lead to the same place. An idempotent job produces the same result whether it runs once or three times. Practical ways to get there: - **Record what you've done.** For a daily digest, store a row like `(user_id, digest_date)` with a unique constraint. Before sending, insert the row; if the insert fails because it already exists, skip that user. - **Work from state, not from "since last run".** Instead of "process everything since the last time this ran", select rows where `processed_at IS NULL` and mark each one as you finish it. If a run dies halfway, the next run picks up where it left off. - **Make deletes conditional.** "Delete sessions where `expires_at < now()`" is safe to repeat. "Delete the oldest 1,000 sessions" is not. ## What happens if a job runs long or two runs overlap? If a job scheduled every five minutes sometimes takes seven, you'll eventually have two copies running at once, both touching the same rows. The usual fixes: - **Take a lock.** In Postgres, `pg_try_advisory_lock()` at the start of the job lets the second run notice the first is still going and exit immediately. Release it when you're done. A row in a `job_locks` table with an expiry time does the same job on other databases. - **Bound the work per run.** Process at most a fixed batch, say 500 rows, then return. If there's more, the next scheduled run handles it. This keeps each request short and predictable. - **Push heavy work to a queue.** If a job genuinely takes minutes, let the scheduled endpoint enqueue tasks and return quickly, then have a background worker drain the queue. Redis is a common choice for the queue in small apps. ## How do you know a scheduled job actually ran? The worst scheduled-job bug is the one nobody notices: the job silently stopped weeks ago, and the first sign is a customer asking why they never got their invoice. Build in visibility from day one: - **Log a start line and an end line** with the job name, how many items it handled, and how long it took. One line each is enough. If you see a start with no matching end, the job crashed or timed out. - **Return a meaningful status code.** Return a 2xx only when the job really succeeded, and a 5xx when it didn't, so the scheduler's run history tells the truth. - **Store the last successful run time** in your database and show it on an internal admin page. If it's older than it should be, something is wrong. - **Check the scheduler's own history** when you suspect a problem. A run history that shows each call and its result is much faster than reading through application logs. Candor Deploy keeps that run history in the portal next to the run-now button, and it publishes how many scheduled jobs you get on the same tab, so you're not left to discover the limit when a job stops ([scheduled jobs changelog](https://candordeploy.com/changelog/scheduled-jobs/?utm_source=blog&utm_medium=organic&utm_campaign=scheduled-jobs-cron-web-apps-patterns-pitfalls)). ## What are the most common scheduled-job mistakes? A short checklist of the ones that come up most: 1. **Timezone surprises.** The job runs an hour early or late after a daylight saving change. Schedule in UTC and convert, or confirm your scheduler's zone. 2. **No idempotency.** A retry sends every customer two emails. 3. **Unbounded work.** The job is fine with 100 rows and times out with 100,000. 4. **Secrets in the URL.** A token in the query string ends up in access logs. Put it in a header. 5. **Silent failure.** The handler catches every exception and returns 200, so the run history always looks green. 6. **Testing in production by accident.** Pressing run-now on a job that emails real users. Give jobs a dry-run flag, or test against a staging copy first. ## The short version Expose a protected `POST` endpoint, call it on a cron schedule, and design the job so running it twice is harmless. Keep each run short, lock against overlap, and log enough that you'd notice within a day if it stopped. If your app also needs a database for job bookkeeping, the [databases guide](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=scheduled-jobs-cron-web-apps-patterns-pitfalls) covers attaching one, and the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=scheduled-jobs-cron-web-apps-patterns-pitfalls) gets your app running first. --- # Build Logs vs Runtime Logs: A Practical Guide to Debugging a Failed Deploy URL: https://candordeploy.com/blog/build-logs-vs-runtime-logs-debugging-guide/ **TL;DR:** A deploy fails in one of two places: while your code is being turned into a runnable image (read the build log, from the bottom up) or after your app starts (read the runtime log, from the first error down). Figure out which side of that line you're on before you change anything, and most deploy bugs take minutes instead of an evening. When a deploy breaks, the instinct is to start changing things: bump a version, tweak a config file, push again and hope. That loop is slow because each push costs a full build. The faster path is to read the right log first. This guide explains what each log contains, how to tell which one you need, and the failures that show up again and again. ## What's the difference between a build log and a runtime log? They cover two different stretches of time. - **The build log** covers everything between "a commit arrived" and "an image exists": cloning the repository, detecting the stack, installing dependencies, compiling assets. Your app's code hasn't run yet. If something fails here, nothing new is serving traffic. - **The runtime log** covers everything your app prints after the process starts: the framework's startup banner, request lines, warnings, stack traces. If something fails here, the build was fine and the problem is in how the app boots or behaves. On Candor Deploy the two live in different places in the portal. Build output sits on the app's Deployments tab, where each deployment in the history expands to show what its build did, and a copy is saved when the build finishes so the output of older builds stays there whether they succeeded or failed. Runtime logs sit on the Logs tab and refresh every few seconds with the most recent lines ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). ## How do you tell which log you need? Look at where the deploy stopped. Most hosts show a phase or status for each deployment, and that phase tells you which log to open. On Candor Deploy, each deployment shows one of six phases: Queued, Building, Deploying, Live, Failed or Canceled ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). A rough map: - **Failed** means the build didn't complete. Open the build output. - **Stuck in Deploying** means the build worked but the new version never proved it was up. That's almost always a runtime problem, so open the runtime logs. - **Live, but the app misbehaves** means a runtime problem in your code or configuration. Runtime logs again. That one decision, build or runtime, rules out half the possible causes before you've read a single line. ## How should you read a build log? From the bottom. Build tools print a lot of progress noise, and the actual reason for a failure is almost always in the last few lines. Scrolling from the top means reading hundreds of lines of successful dependency installs before you reach the one line that matters. Candor Deploy leans into this: build output keeps the last 2,000 lines, and a longer build is trimmed from the top with a visible marker, because the failure is at the end ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). What you'll typically find at the bottom: 1. **A dependency or compile error.** The same error you'd hit building the project on your own machine: a missing package, a type error, a lockfile out of sync with the manifest. Reproduce it locally with a clean install, fix it, commit and push. 2. **The stack wasn't recognized.** Auto-detecting builders look for marker files such as `package.json`, `pyproject.toml` or `go.mod`. If those aren't in the directory being built, detection has nothing to go on. In a monorepo, check which subdirectory the host builds; on Candor Deploy that's the Root directory you set when creating the app, and leaving it blank builds the repository root ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). 3. **The build hit a resource limit.** Builds usually run with fixed CPU, memory, disk and time budgets. A build that ends abruptly, especially near its time limit or while downloading something huge, has probably hit one. Candor Deploy publishes its build limits in the same docs page, so check them there rather than guessing. A useful habit: when the build log shows an error you don't recognize, copy the exact line and run the same build command locally in a clean checkout. If it fails the same way, it's your project, not the platform. ## How should you read a runtime log? Differently. Runtime logs are a stream, not a report, so the useful line is usually the first error after startup, not the last line on screen. Restart loops make this worse: the same crash repeats, and the newest lines are just the latest copy of it. Read for these, in order: 1. **Did the app print its startup banner?** If your framework normally says something like "listening on port..." and you don't see it, the app crashed before it got there. Look just above where the banner should be. 2. **Which port and interface did it bind?** An app listening on `localhost:3000` inside a container can't be reached by the platform's router. If the log shows a hard-coded port or `127.0.0.1`, that's your bug. 3. **What's the first stack trace?** Missing environment variables and database connection errors usually throw on boot, with the variable or host name right in the message. Structured logging helps a lot here. If your app writes JSON lines with a level field, a log viewer can filter to errors and skip the noise. Candor Deploy's Logs tab parses lines into rows with timestamps and levels, filters by level, supports search and live-tail, and unwraps structured JSON so you see the message itself ([changelog: readable logs](https://candordeploy.com/changelog/logs-and-domains/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). ## Why does a deploy hang in "Deploying" and never go live? This is the classic runtime failure that looks like a platform problem. The build succeeded, the container started, and then nothing. The usual cause is the port. Hosts tell your app which port to use through a `PORT` environment variable, send traffic there, and run a health check against it. On Candor Deploy, the platform sets `PORT` inside the container (default 8080), routes traffic to it and health-checks it by connecting to it. An app that hard-codes another port fails all three, so the deployment stays in Deploying and the previous version keeps serving in the meantime ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). The fix is two lines of config: read the port from `PORT`, and listen on `0.0.0.0` rather than `localhost`. Our earlier post on [the $PORT and 0.0.0.0 fix](https://candordeploy.com/blog/app-works-locally-fails-after-deploy-port-fix/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide) walks through it framework by framework. ## What if the runtime log is empty? An empty runtime log is information too. Two common meanings: - **The app never had a successful deploy to run**, so there's nothing to print yet. Go back to the build output. - **The process was killed before it could print anything.** Repeated restarts with no output often point to memory: if the app exceeds its memory limit, it's stopped and restarted, frequently without a helpful message. On Candor Deploy, the Usage tab shows live memory against the limit, and a reading that sits near 100% is your answer ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). ## What are the most common runtime crashes? After the port, three causes cover most crash-on-boot logs: - **A missing environment variable.** The stack trace usually names it. Add it in your host's settings, and remember that most platforms apply new values only on the next deploy. On Candor Deploy you add variables on the Environment tab, one `KEY=value` per line, and saved values apply on the next deploy ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). We covered the build-time versus runtime distinction in [environment variables explained](https://candordeploy.com/blog/env-vars-build-time-vs-runtime/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide). - **A database connection error.** Check that the connection string is set, that the database finished provisioning before the app booted, and that the URI scheme matches your driver. For example, SQLAlchemy with psycopg 3 expects `postgresql+psycopg://` rather than `postgresql://`. - **A failing migration on startup.** If your start command runs migrations, a bad migration crashes boot. See [running migrations on deploy safely](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide) for a pattern that keeps old and new versions compatible. ## What should you include when you ask for help? If the logs don't explain it, a good support request saves a round trip. Include the app's name and URL, the short commit SHA of the deployment, the phase it's stuck in, the last few lines of the relevant log, and what changed most recently, such as a new dependency, variable or domain ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide)). That list is worth following on any platform, and for any teammate you're asking. ## The short version Find the phase, pick the log, and read it the right way: build output from the bottom, runtime logs from the first error. When you're ready to try it on your own app, start with the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=build-logs-vs-runtime-logs-debugging-guide). --- # Custom Domains and HTTPS: The One DNS Record, Explained URL: https://candordeploy.com/blog/custom-domain-https-dns-record-explained/ **TL;DR:** Pointing your own domain at a hosted app usually takes one DNS record: a CNAME for a subdomain like `www` or `app`, and for a bare apex like `example.com`, either an A record or your DNS provider's ALIAS/flattening feature, depending on what the host asks for. Once that record resolves to the host, an HTTPS certificate can be issued for the name, and the domain goes live. Custom domains feel like the scary part of a deploy because half the moving pieces live somewhere else: your registrar, your DNS provider, and a certificate authority you never talk to directly. The good news is that the model is small. This guide explains what each record does, why apex domains get special treatment, how certificates get issued without you uploading anything, and how to debug a domain that won't go live. ## What does a DNS record actually do? DNS is a lookup table. When a browser wants `www.example.com`, it asks the DNS servers responsible for `example.com` what that name points to. The answer is a record, and two record types cover almost every hosting setup: - **A record:** maps a name directly to an IPv4 address. "`example.com` lives at this IP." - **CNAME record:** maps a name to another name. "`www.example.com` is an alias for `edge.somehost.example`; go look that up instead." A CNAME is usually what a host asks for, because it lets the host change the IP addresses behind its edge without you editing anything. You point at a name they control, and they keep that name current. ## Which record do you need: CNAME or A? It depends on whether your hostname is a subdomain or the bare apex of the domain. On Candor Deploy, a subdomain such as `www.example.com` or `app.example.com` gets a CNAME. A bare apex such as `example.com` gets whatever record Candor gives you for it: either an A record, or a CNAME-style target that you set with your DNS provider's ALIAS, ANAME or CNAME-flattening feature ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). When you add a domain, Candor returns the exact record type, name and value to create. That record is the source of truth, not any blog post, including this one. ## Why can't an apex domain be a CNAME? This trips up a lot of people. The apex of a zone (`example.com` itself) must carry other records, like the SOA and NS records that make the zone work, and often MX records for email. DNS rules say a name with a CNAME can't have any other records alongside it. So the apex can't be a literal CNAME, and hosts give you either an A record to an IP or a target to use with a flattening feature instead ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). Some DNS providers offer a workaround, often called CNAME flattening or an ALIAS record, which resolves a target name for you and answers with IPs. Some hosts require it for the apex, others accept it as an alternative to an A record. Either way, the simplest path is to set exactly the record your host gives you. ## Do www and the apex count as one domain? No. `example.com` and `www.example.com` are two separate hostnames as far as DNS and certificates are concerned. If you want both to work, add both. On Candor Deploy, each one you add gets its own record and its own certificate, and wildcard domains aren't supported, so add each hostname you actually want to serve ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). A common setup is to treat one as canonical (say `www`) and have your app redirect the other to it. That keeps search engines from indexing two copies of every page and keeps cookies on one host. ## How does HTTPS get set up automatically? Modern hosts get certificates from a certificate authority using an automated challenge. The authority asks, in effect, "prove you control this hostname," and the host proves it by answering a request on that hostname. If the answer comes back from the right place, the certificate is issued. The important consequence: **the certificate can't be issued until your DNS points at the host.** Until then, requests for your domain land somewhere else, and the challenge fails. On Candor Deploy, every hostname an app serves, both the built-in `candorhost.app` URL and each custom domain, gets an HTTPS certificate that Candor provisions and renews automatically, with nothing to upload. There's no separate TXT verification step for you either: once the record Candor gave you is in place and resolves, the certificate issues. Plain `http://` requests to your domain redirect to `https://` from the start ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). ## How do you add a domain, step by step? The general flow is the same almost everywhere: tell the host the hostname, create the record it gives you, then wait for DNS and the certificate. On Candor Deploy, you add domains through the Candor MCP tools, for example by asking an AI assistant connected to Candor's MCP server ([connect Claude](https://candordeploy.com/docs/connect-claude/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)) to add the hostname for you (you need permission to manage domains on the project): 1. Ask your assistant to add the full hostname, like `www.yourdomain.com` or `example.com`, to an app or static site. (Databases have no public endpoint, so they don't take domains.) This calls the `add_domain` tool. 2. Candor replies with the exact DNS record to create: its type, name and value, plus a note if your apex needs ALIAS or flattening. 3. Create that record at your registrar or DNS provider. 4. Check progress with the `list_domains` tool. It reports the DNS status (`pending` until the name resolves, `mismatch` if it resolves somewhere else, `ok` once it points at Candor) and the TLS status (`pending` until the certificate issues, then `active`). Either can show `unknown` if the check couldn't run; look again shortly. You can add a domain before the app's first deploy; it's wired up when the app first goes live. And the generated `candorhost.app` URL keeps working after you add a custom domain, which makes it a handy stable address for testing ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). ## Why is my domain stuck at pending? A domain that won't go live is almost always a DNS problem, not an app problem. Work through these in order: - **Check what the world sees.** Run `dig +short www.example.com` (or `nslookup`). You should see the target from the record Candor gave you (a CNAME target for a subdomain; for an apex, the IP or the addresses your provider's flattening resolves to). If you see your old host, or nothing, the record isn't in effect yet. - **Check the record name.** Many DNS panels append the domain automatically. Entering `www.example.com` in the name field can produce `www.example.com.example.com`. Usually you enter just `www`, or `@` for the apex. - **Check for conflicting records.** An old A record and a new CNAME on the same name will conflict, and some panels quietly keep both. Remove the old one, and remove any old AAAA record too: a leftover IPv6 address still sends some visitors to your previous host. - **Check the TTL.** If the previous record had a long TTL, resolvers may keep serving the old answer until it expires. Lowering the TTL ahead of a planned move shortens that wait next time. - **Check proxies in front.** If your DNS provider proxies traffic through its own network, the certificate challenge may never reach your host. On Candor Deploy, leave the record DNS-only (unproxied), not just while the certificate issues: a proxied record resolves to your provider's addresses, so the DNS status may read `mismatch`. On Candor Deploy, if a domain stays pending for hours, the docs say the record is almost always the culprit: re-check the type, name and value against the record Candor returned when you added the domain ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). ## What else can go wrong? A few rules are worth knowing before you hit them. On Candor Deploy, a hostname can only be attached to one service across the whole platform, so adding a domain that's already in use fails with a clear error; if it's on another one of your services, remove it there first. You enter a full hostname, not an IP or a bare label, and removing a domain stops routing that hostname to your app while the generated URL keeps working ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)). Outside the platform, the classic gotchas are email and expiry. Changing nameservers to move DNS can silently drop your MX records if you don't copy them over, and a domain that lapses at the registrar takes your app down no matter how healthy it is. Turn on auto-renew. ## What's the next step? Before you touch your registrar, open the [domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained), ask your Candor-connected assistant ([connect Claude](https://candordeploy.com/docs/connect-claude/?utm_source=blog&utm_medium=organic&utm_campaign=custom-domain-https-dns-record-explained)) to add the hostname, and copy the exact record Candor returns. --- # Monorepos on a git-push Host: Serving Frontend and API Under One Domain URL: https://candordeploy.com/blog/monorepo-frontend-api-one-domain/ **TL;DR:** Deploy the frontend and the API as two apps from the same repository, give each its own root directory, and put your domain on the frontend only. Then have the frontend's server forward `/api/*` to the API over the private network, so the browser only ever talks to one origin and CORS never enters the picture. This works on Candor Deploy today and on any host where your apps can reach each other privately. A monorepo with `web/` and `api/` folders is one of the most common shapes for a side project or a small product. It's also where many first deploys go sideways: the build runs in the wrong folder, the frontend calls `localhost:4000` in production, or the browser blocks every request with a CORS error. This guide walks through a layout that avoids all three. ## What does "one domain" actually buy you? When the browser loads `https://example.com` and then calls `https://example.com/api/orders`, both requests share an origin. That has practical benefits: - **No CORS configuration.** Same-origin requests don't trigger preflight checks, so there's no allow-list of origins to maintain per environment. - **Simpler cookies.** A session cookie set by the API on `example.com` is sent on every same-origin request without `SameSite=None` workarounds or cross-site cookie rules. - **One certificate and one DNS record to think about.** Your visitors and your frontend code only need one hostname. - **Relative URLs in the frontend.** Your code calls `/api/orders` everywhere, in development and production, instead of switching base URLs per environment. The alternative, a separate `api.example.com`, is perfectly workable. It just moves complexity into CORS headers, cookie domains, and per-environment configuration. If you don't need a public API for third parties, one domain is usually the simpler starting point. ## How should the repository be laid out? Keep each deployable in its own directory with everything it needs to build: ``` my-product/ web/ # frontend (package.json, framework config) api/ # backend (package.json, pyproject.toml, go.mod, ...) .candorfile # optional, at the repo root ``` The rule that matters: each app's stack-identifying file (`package.json`, `pyproject.toml`, `go.mod`, `Gemfile`, `composer.json`) must sit at the root of *that app's* directory. A build that starts at the repository root of a monorepo often finds nothing it recognizes, or finds the wrong thing. On Candor Deploy, when it detects a repository's apps for you (see the next section), detection looks for deployables at the repo root, in top-level directories, and one level deep under `apps/`, `packages/` and `services/`, and the builder is decided inside each app's directory ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). So `web/` and `api/`, or `apps/web/` and `apps/api/`, are found without restructuring. Shared code, such as a `packages/types` folder used by both apps, deserves a moment of thought. If an app's build only sees its own directory, imports that reach outside it (`../../packages/types`) won't resolve, and neither will a workspace dependency such as `"@acme/types": "workspace:*"`, because workspace packages are resolved from the repository root. Publish the shared package to a registry so it installs like any other dependency, or keep shared code small enough to copy into each app. Test this by building each app from a fresh clone, starting inside its own folder. ## How do you deploy two apps from one repo? Treat the frontend and the API as two services that share a repository and a branch. Each gets its own root directory, its own environment variables, and its own logs. On Candor Deploy, the most direct route today is the Candor MCP ([connect Claude](https://candordeploy.com/docs/connect-claude/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). Its `deploy_from_repo` tool previews the repository, deploys every app it detects together in one new project, and wires them to each other (more on that below). To add an app from a subdirectory later, such as `backend` or `apps/web`, its `create_service` tool takes the project, a name for the new app, and a `root` to build from. After that, one push to the branch rebuilds and redeploys every app connected to that repository and branch ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). In the portal at deploy.candorhost.com, importing a repository deploys it from the repository root, so the import only succeeds when something deployable sits there; a repo with only `web/` and `api/` folders and nothing at the root is refused. Once an app exists, you can point it at a subdirectory with **Root directory** under its **Settings** tab and redeploy. The portal doesn't yet add a second app from the same repository, so use the MCP for the two-app layout in this guide. If you'd rather pin settings in code, a `.candorfile` at the repository root holds one block per service, and its `root` key sets the subdirectory to build from ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)): ```yaml services: my-product-web: root: web my-product-api: root: api database: postgres ``` The service names must match your services exactly, so copy them from the portal. `deploy_from_repo` names each app after the project and its folder, so a `my-product` project gets `my-product-web` and `my-product-api`. A portal import names its single app `-app`, and changing its root directory later doesn't rename it. Settings in that file override both portal settings and detection, so it's the place to fix things like a start command for the API. ## How do you put /api on the same domain? Make the frontend's server a thin proxy: anything under `/api/` is forwarded to the API's private address, and everything else is served by the frontend as usual. This needs the frontend to run a server process; a purely static build has nothing to run it. Put your custom domain on the frontend app (on Candor Deploy, its **Domains** tab), and the API is reachable through it. The proxy needs the API's private address. On Candor Deploy, apps that `deploy_from_repo` deploys together each receive their siblings' in-cluster addresses as environment variables named `_URL`. A backend service becomes `BACKEND_URL=http://svc-...`, reachable from the other apps over the private network, and a value you set yourself wins ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). With an `api/` folder, look for `API_URL`; check the app's environment in the portal to confirm the exact name. If you added the API later with `create_service`, or through the portal, nothing is injected: set `API_URL=http://svc-` on the frontend yourself, using the API app's name. That address is reachable from your apps, not from a visitor's browser. Putting it in client-side code, or baking it into a bundle as a public build variable, gives the browser a URL it can't reach. The private URL belongs in **server-side** code only. A minimal Node example using Express 5 and `http-proxy-middleware`. It uses ES module `import`, so add `"type": "module"` to `web/package.json` (or name the file `server.mjs`). Also add `"start": "node server.js"` to its `scripts`, and make sure its `build` script emits `dist/`, since the server serves files from there: ```js import express from "express"; import { createProxyMiddleware } from "http-proxy-middleware"; const app = express(); const target = process.env.API_URL; // private address, e.g. http://svc-my-product-api if (target) { // Keeps the prefix: /api/orders reaches the API as /api/orders, like the dev proxy below. // Matches /api and /api/... only, so a page like /apiary stays with the frontend. const pathFilter = (path) => path === "/api" || path.startsWith("/api/"); app.use(createProxyMiddleware({ target, pathFilter, changeOrigin: true, proxyTimeout: 30_000 })); } else { app.use("/api", (_req, res) => res.status(503).send("API_URL is not set")); } app.use(express.static("dist")); app.get("/{*splat}", (_req, res) => res.sendFile("index.html", { root: "dist" })); app.listen(process.env.PORT || 8080, "0.0.0.0"); ``` This proxy forwards the path unchanged, so the API serves its routes under `/api`. Most full-stack frameworks offer the same thing as a server route or rewrite. Whatever you use, check *when* the target is read. Some framework configuration is evaluated at build time, which means the API address would need to exist during the build and would be frozen into the output. Reading `process.env.API_URL` inside a request handler at runtime avoids that question entirely. A few details that save debugging time: - **Match the API's routes to the prefix.** The proxy above keeps `/api`. If your API's routes are `/orders` rather than `/api/orders`, add a path rewrite to the proxy, do the same in development, and test it. - **Remember the API still has its own public URL.** On Candor Deploy, every app keeps its generated `https://-.candorhost.app` address ([domains docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)), so the API can be called directly, not just through the frontend. Keep its authentication and rate limits. - **Forward the client IP carefully.** Behind a proxy, the API sees the frontend as the caller. Trust `X-Forwarded-For` only from a proxy you control, such as your frontend's server; anyone calling the API's public URL directly can set that header to any value. - **Keep the API listening on `$PORT` too.** It's still an app with its own health check. - **Set timeouts.** A proxy with no timeout turns a slow API into a frontend that hangs. ## What about local development? Mirror production so the frontend code never changes. Run the API on a local port, and point the dev server's proxy at it: ```js // vite.config.js export default { server: { proxy: { "/api": "http://localhost:4000" } }, }; ``` The frontend keeps calling `/api/orders`. Locally, the dev server forwards it; in production, the frontend's server does. Vite's proxy keeps the `/api` prefix, which matches the Express proxy above. Same code, same paths, different target. ## What usually breaks? - **The stack isn't recognized.** The build ran at the repository root. Set the app's root directory to its subdirectory ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). - **The domain shows the API's JSON.** The domain is attached to the API. Attach it to the frontend app. - **`/api` returns 404 in production only.** The proxy is a dev-server feature that never shipped, or one environment strips the prefix and the other doesn't. - **Network errors to `http://svc-...` in the browser console.** The private URL leaked into client code. Move the call behind the proxy. - **Changed variables don't take effect.** On Candor Deploy, environment changes apply on the next deploy, so redeploy after saving ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain)). ## What's the next step? Read the monorepo section of the [builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=monorepo-frontend-api-one-domain), then confirm both of your app folders build on their own before your first push. --- # Deploying a Laravel App from a Git Repo: The Production Checklist URL: https://candordeploy.com/blog/deploy-laravel-app-from-git-production-checklist/ **TL;DR:** A Laravel app that runs fine with `php artisan serve` usually fails its first production deploy for one of a few reasons: no `APP_KEY`, a database connection still pointing at SQLite, files written to local disk, migrations nobody ran, or a web server that needs Linux capabilities the container doesn't have. Sort those out before the first push, and on Candor Deploy build from the Dockerfile below, which runs FrankenPHP as an ordinary user. This guide is written for Laravel 13, deployed from a git repository to a container-based host, with MySQL or Postgres. We tested the recipe below on a fresh `laravel new` app (`laravel/framework` 13.39). The settings it relies on are the same in Laravel 12. If you're still on Laravel 11 or older, upgrade first: Laravel 11 stopped getting security fixes on 12 March 2026, and because of open security advisories, Composer now refuses to pick its releases when it resolves dependencies (`composer update`, `require` or `create-project`). Where Candor Deploy does something specific, we link the doc that says so. ## Is your app detected as PHP, and how is it built? A git-push host has to work out what your repository is before it can build it, and a Laravel repo is easy to misread. Candor Deploy's detection rules treat a `package.json` that lists `vite` as a static site, and a stock Laravel app's `package.json` lists `vite`, so detection calls it a static site, not a PHP app ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). A static site is built and then served as files, so PHP never runs. Say what the repo is instead: set `kind: app` in a `.candorfile`, as in the [recipe below](#a-recipe-that-runs-without-capabilities). The default build runs on Nixpacks. For Laravel, don't rely on it; build from your own Dockerfile instead. Candor Deploy runs app containers with every Linux capability dropped and privilege escalation turned off. A container may still start as root, but root without capabilities can't switch to another user. The usual PHP setup is nginx with PHP-FPM, and both start as root and then switch their workers to an unprivileged user such as `www-data`. With no capabilities that switch fails, so the web server never comes up. The [recipe below](#a-recipe-that-runs-without-capabilities) avoids user switching entirely: one FrankenPHP process, started as an ordinary user. Two things to confirm locally: - `composer.lock` is committed, so the build installs exactly the versions you tested. - The PHP version in `composer.json` (`"require": { "php": "^8.3" }`) matches what you run in development. Laravel 13 needs PHP 8.3 or later. If Laravel lives in a subdirectory of a monorepo, set that directory as the app's root rather than moving files around. In a `.candorfile` that's the `root` key ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). ## Where does APP_KEY come from? Laravel encrypts cookies and sessions with `APP_KEY`, and it refuses to work without one. Your local `.env` has a key, but `.env` shouldn't be in git, so production starts with nothing. Generate a fresh key for production instead of reusing your laptop's: ```bash php artisan key:generate --show ``` Copy the whole output, including the `base64:` prefix, into the app's environment. On Candor Deploy, add it on the app's Environment tab as a variable named `APP_KEY`, with the key as its value. Environment changes reach the app on its next deploy ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Mark `APP_KEY` as secret. That matters if you use preview deployments: a preview gets every production variable except the ones you marked secret ([preview deployments](https://candordeploy.com/changelog/preview-deployments/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). An unmarked `APP_KEY` goes to every preview built from a branch, along with anything else you didn't mark, such as database credentials you typed in yourself. Give previews their own values under Environment → Preview. Once a production variable is marked secret, a preview won't deploy until its preview set has a value for that variable, even an empty one. Don't leave `APP_KEY` empty, though: with no key, Laravel answers every request with a 500. Generate a separate key for previews with `key:generate --show` and use it as the preview value. The same rule covers a secret Candor Deploy adds for you, `CANDOR_CRON_SECRET`, when you add a scheduled job ([below](#who-runs-the-queue-and-the-scheduler)). Use `key:generate` rather than making up a key. The default cipher, AES-256-CBC, needs exactly 32 bytes, and the `base64:` form is how `key:generate` writes 32 random bytes. Once the key is set, don't change it casually. Data stored with the `encrypted` cast or `Crypt::encrypt` can only be read with the key that wrote it, and a new key also signs everyone out. To rotate, move the old key to `APP_PREVIOUS_KEYS` (comma-separated) when you set the new one, so Laravel can still decrypt what the old key wrote. ## Is debug mode off? Set these explicitly in production: ``` APP_ENV=production APP_DEBUG=false APP_URL=https://your-domain.example ``` `APP_DEBUG=true` in production shows Laravel's detailed error page to anyone who triggers an error: the stack trace, snippets of your source code, the request headers and body, the matched route and the SQL queries that ran. It's the single most dangerous default to carry over from local development. `APP_URL` matters too: Laravel uses it for links in emails, queued notifications and anything generated outside a web request. ## Is the database connection pointed at the right engine? New Laravel apps default to SQLite. A SQLite file inside a container lives on a filesystem that gets replaced on the next deploy, so your data goes with it. Set the connection explicitly: ``` DB_CONNECTION=mysql ``` Laravel can read a whole connection string instead of separate host, user and password variables. It reads it from `DB_URL` (see the `url` lines in `config/database.php`). On Candor Deploy, you can run managed MySQL 8.4 or Postgres next to your app. Attaching a database writes its connection string into the app's environment as `DATABASE_URL`, marked secret. Databases attached on or before 30 September 2026 stored it unmarked, and the Environment tab doesn't show the difference: it hides any connection string and shows it with the lock on, whether or not it's stored as secret. Previews still inherit an unmarked one, so if your app's database was attached on or before that date, attach it again: on the app's Environment tab, under Production, pick the database under **Attach a database** and click **Attach**. That rewrites `DATABASE_URL` with the database's current connection string, marked secret. A preview then won't deploy until `DATABASE_URL` has a value under Environment → Preview: a separate database's connection string, or an empty value so previews run without one. Laravel doesn't read that name, so the start script in the [recipe below](#a-recipe-that-runs-without-capabilities) copies it into `DB_URL` when `DB_URL` isn't set. You still need `DB_CONNECTION`: if a database is configured but `DB_CONNECTION` is missing or `sqlite`, the script stops with an error. Otherwise Laravel would use its default `sqlite` connection block. Given a connection string, that block connects to your MySQL or Postgres anyway, but without the `mysql` or `pgsql` block's charset, collation and strict-mode settings. Given only `DB_HOST`, it migrates a SQLite file that the next deploy throws away. For MySQL, the user and database are both named `app`. The database is never exposed to the internet, so only your own services can reach it ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). If you set the connection yourself instead (your own `DB_URL`, or `DB_HOST` and `DB_PASSWORD`), mark those variables secret, for the same reason as `APP_KEY`: anything unmarked is copied into previews, and the start script runs migrations whenever it finds a database. A preview with your production connection would run a branch's migrations against your production database. In the preview set, point them at a separate database, or set them to an empty value so the preview runs without one. Previews also inherit unmarked settings such as `DB_CONNECTION=mysql` and `SESSION_DRIVER=database`, and a preview with no database would fail every request trying to load its session. So when no database is configured, the start script skips migrations and replaces any session, cache or queue driver that needs one (`database`, or `redis` when no Redis is configured) with cookie sessions, the file cache and the `sync` queue. The preview then serves pages, but anything that queries the database still fails. ## Is the web server listening on PORT? Container hosts tell your app which port to listen on through the `PORT` environment variable, and they check that something answers there before sending traffic. An app listening on the wrong port or on `127.0.0.1` builds fine and then never goes live. Candor Deploy always sets `PORT` (8080 by default) and health-checks the app by connecting to it. If nothing answers, the deploy never goes live ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Whether the previous version is still serving at that point depends on whether a volume is attached and whether your memory pool has room for a second copy of the app; see [when migrations run](#when-do-migrations-run) below. Whatever serves your app has to bind to all interfaces (`0.0.0.0`) on that port. Don't use `php artisan serve` in production; it's a single-process development server. The [recipe below](#a-recipe-that-runs-without-capabilities) runs FrankenPHP on `0.0.0.0:$PORT` with `public/` as the web root. The general version of the port problem is in [the $PORT and 0.0.0.0 fix](https://candordeploy.com/blog/app-works-locally-fails-after-deploy-port-fix/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist). ## Where do uploads, sessions and cache live? Anything written to `storage/` inside a container is temporary. That includes user uploads on the `local` or `public` disk, file-based sessions and the file cache. It all works until the next deploy, then it's gone, and users find themselves signed out. Move each of them somewhere that outlives the container: - **Uploads:** an external S3-compatible object store, through Laravel's `s3` filesystem driver. Candor Deploy's own object storage (Buckets) isn't available yet. A volume keeps files across deploys, but while a volume is attached, every deploy stops the old version before starting the new one, so expect a few seconds of downtime, and a volume isn't replicated or backed up ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). - **Sessions and cache:** the `database` driver, or Redis. New Laravel apps already use the database for both, and the sessions and cache tables are in the default migrations. If you use Redis, Laravel's config already reads `REDIS_URL`. On Candor Deploy, attaching a Redis database writes exactly that variable ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Then set `SESSION_DRIVER=redis` and `CACHE_STORE=redis`. Laravel's default Redis client, phpredis, needs PHP's redis extension, which the Dockerfile below doesn't install. Run `composer require predis/predis` and set `REDIS_CLIENT=predis`, or add `redis` to the Dockerfile's `install-php-extensions` line. Without one of them, every request fails with `Class "Redis" not found`. Redis counts as a database, though, and Solo allows one, so on Solo use the `database` driver and keep MySQL or Postgres as that one. ## Where do the logs go? Laravel writes to `storage/logs/laravel.log` by default, which is the wrong place in a container: nobody reads it, and it vanishes on redeploy. Send logs to standard error instead: ``` LOG_CHANNEL=stderr ``` The Dockerfile below sets this as the image's default. On Candor Deploy, build output is on the Deployments tab and everything the app prints after it starts is on the Logs tab ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). A missing `APP_KEY` or a refused database connection then shows up as one readable line instead of a blank 500 page. ## When do migrations run? On many hosts, migrations are your job. Candor Deploy has no separate release-phase hook: schema migrations run from your app's start command or Dockerfile entrypoint ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). In production, `php artisan migrate` asks for confirmation. A container has no terminal to answer it, so the command prints "Command cancelled." and exits with an error without migrating anything. In a start script with `set -e`, that stops the container, and it restarts over and over. Always pass `--force`. The start script in the [recipe below](#a-recipe-that-runs-without-capabilities) runs them before the web server starts, and only when a database is configured. `set -e` stops it at the first failure, so a failed migration never leads to a half-started app. If the old version was already stopped (see below), a failed migration means the site stays down until you roll back. Whether the old version keeps serving during a deploy depends on two things. If the app has a volume attached, the old version always stops before the new one starts. Without a volume, the new version starts while the old one is still serving, as long as your memory pool has room for a second copy of the app. On Solo with a 512 MB app and a 512 MB database the pool is full, so the old version stops first (and scheduled jobs can't run; see [below](#who-runs-the-queue-and-the-scheduler)). Whenever the old version stops first, the site is down while migrations and the app's boot run, and a failed deploy means downtime until you roll back ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Keep startup migrations short: the start script runs them before the server listens on `PORT`, and the health check may restart a container that's slow to start listening, cutting a migration off partway. Either way, write migrations so old code still works against the new schema, since the old version may still be serving and a rollback runs old code against it: add columns first, remove them in a later deploy. Our guide to [running migrations on deploy safely](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist) covers that expand-then-contract pattern. Run `config:cache` at startup rather than at build time, since it captures the environment values present when it runs. ## A recipe that runs without capabilities This is the whole recipe: a Dockerfile, a start script, a `.dockerignore` and a short `.candorfile`. It runs Laravel on [FrankenPHP](https://frankenphp.dev), a PHP app server built on Caddy, as a single process started as an ordinary user, so nothing ever needs to switch users. We built it on a stock Laravel 13 app and ran it under Docker with `--cap-drop=ALL --security-opt no-new-privileges`, once as the image's own user and once forced to root with `--user root`. Both answered `GET /` with a 200. ```dockerfile # Dockerfile # Install PHP dependencies in a throwaway stage, so Composer isn't in the final image. FROM composer:2 AS vendor WORKDIR /app COPY composer.json composer.lock ./ RUN composer install --no-dev --no-scripts --no-autoloader --no-interaction --prefer-dist --ignore-platform-reqs COPY . . RUN composer dump-autoload --optimize --no-dev --no-scripts FROM dunglas/frankenphp:1-php8.4 # Database drivers for MySQL and Postgres (pdo_sqlite is already built in). RUN install-php-extensions pdo_mysql pdo_pgsql # Run as an ordinary user. The binary ships with a file capability # (cap_net_bind_service, for ports below 1024); with every capability dropped # the kernel refuses to exec a binary that carries one, and on port 8080 it # isn't needed, so remove it. `setcap -r` exits 1 if the capability is already # gone (a builder may drop it while unpacking the image), so allow that, then # fail the build if one is still there. The user's group is 0 so a container # started as root (which, with no capabilities, can't bypass file permissions) # can still write where the app writes. RUN useradd --uid 1000 --gid 0 --create-home app \ && { setcap -r /usr/local/bin/frankenphp || true; } \ && [ -z "$(getcap /usr/local/bin/frankenphp)" ] \ && chown -R app:0 /config/caddy /data/caddy \ && chmod -R g=u /config/caddy /data/caddy WORKDIR /app COPY --from=vendor --chown=app:0 /app /app RUN php artisan package:discover --ansi \ && chown -R app:0 storage bootstrap/cache \ && chmod -R g=u storage bootstrap/cache USER app ENV PORT=8080 LOG_CHANNEL=stderr CMD ["sh", "scripts/start.sh"] ``` ```sh #!/bin/sh # scripts/start.sh: prepare the app, then run FrankenPHP on $PORT. set -e # Attaching a database on Candor Deploy writes DATABASE_URL; Laravel reads DB_URL. if [ -z "${DB_URL:-}" ] && [ -n "${DATABASE_URL:-}" ]; then export DB_URL="$DATABASE_URL" fi if [ -n "${DB_URL:-}${DB_HOST:-}" ]; then # Laravel's default connection is sqlite. Left at that, a DB_URL runs your # MySQL or Postgres through the sqlite block's settings, and DB_HOST alone # migrates a SQLite file that the next deploy throws away. Refuse instead. if [ "${DB_CONNECTION:-sqlite}" = "sqlite" ]; then echo "start.sh: a database is configured but DB_CONNECTION is ${DB_CONNECTION:-not set}; set DB_CONNECTION=mysql or pgsql" >&2 exit 1 fi php artisan migrate --force else echo "start.sh: no DB_URL, DATABASE_URL or DB_HOST set; skipping migrations" >&2 # Laravel keeps sessions, cache and queued jobs in the database by default, # and a preview inherits drivers set in production. Replace any driver that # needs a database, or Redis when no Redis is configured, with one that doesn't. pick() { case "$1" in ""|database) echo "$2" ;; redis) if [ -n "${REDIS_URL:-}${REDIS_HOST:-}" ]; then echo redis; else echo "$2"; fi ;; *) echo "$1" ;; esac } export SESSION_DRIVER="$(pick "${SESSION_DRIVER:-}" cookie)" export CACHE_STORE="$(pick "${CACHE_STORE:-}" file)" export QUEUE_CONNECTION="$(pick "${QUEUE_CONNECTION:-}" sync)" echo "start.sh: SESSION_DRIVER=$SESSION_DRIVER CACHE_STORE=$CACHE_STORE QUEUE_CONNECTION=$QUEUE_CONNECTION" >&2 fi php artisan config:cache # Plain HTTP on all interfaces: no domain is given, so Caddy's automatic HTTPS stays off. exec frankenphp php-server --listen "0.0.0.0:${PORT:-8080}" --root public/ ``` ``` # .dockerignore .git .env vendor node_modules storage/logs/* storage/framework/cache/data/* storage/framework/sessions/* storage/framework/views/* bootstrap/cache/*.php database/database.sqlite ``` Add this `.candorfile` at the repository root ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)): ```yaml services: web: kind: app builder: dockerfile port: 8080 ``` - **`kind: app`** overrides detection, which would otherwise make a stock Laravel repo a static site because of the `vite` in its `package.json`. - **`builder: dockerfile`** opts in to the Dockerfile. Without it, a Dockerfile in your repo is ignored and the build runs on Nixpacks. - **`port: 8080`** matches the Dockerfile. It's also the default `PORT`, so this line only makes it explicit. A repo with one app can name its block anything; `web` here doesn't need to match the app's name in the portal. However you create the app, plan on deploying it twice. Creating an app starts its first build straight away, and neither way of creating one asks for environment variables. Settings that aren't secret can go in the `.candorfile` block under `env:` (for example `APP_ENV: production`, `APP_DEBUG: "false"`, `DB_CONNECTION: mysql`, `QUEUE_CONNECTION: sync`, `LOG_CHANNEL: stderr`); they're written when the app is created, before that first build. `APP_KEY` is a secret and doesn't belong in git, so the first deploy runs without it. Don't use the file's `{generate: hex32}` for it either: that makes a 64-character hex string, not a valid Laravel key. Laravel answers every request with a 500 (`No application encryption key has been specified` on the Logs tab), but the deploy can still show as live, since the health check only checks that something is listening. Don't judge the app by it. Once the app exists, set its variables on the Environment tab and attach its database, then deploy again: push a commit, or click Redeploy. The better way to create it is to open a project and click **+ App** (**New project** on the dashboard makes an empty one), then pick the repository. That form always creates an app, with 512 MB of memory, and the `.candorfile`'s `builder` and `port` still apply, so every deploy builds and runs your Dockerfile as an app ([quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). If you create it with **Detect** instead, the first deploy is also the wrong kind. The Detect review screen has no way to choose App over static site, and the `kind` in a `.candorfile` isn't applied when the app is created. So the app starts out as a static site. The `builder` and `port` lines are applied at creation, so that first deploy already builds and runs your Dockerfile, but as a static site with 64 MB of memory. A static site also doesn't receive the app's environment variables, so Laravel has no `APP_KEY` and no database, and answers every request with a 500. In our test under a 64 MB limit, the stock app started and stayed up at about 44 MB, so that deploy can show as live, since the health check only checks that something is listening. A bigger app may run out of memory instead, and that deploy fails. Either way, don't judge the app by it. The next production deploy, the one you make after setting the variables, reads `kind: app` and turns the static site into an app in place, at 512 MB unless the file sets `memory`. After that, every deploy builds an app. If your memory pool has no room for the app, that deploy fails with the reason and the static site stays as it was ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). The parts that matter when there are no capabilities: - **`setcap -r`.** The official FrankenPHP image gives its binary a file capability so it can bind ports below 1024. With every capability dropped, the kernel refuses to run a binary that carries one, so the container fails at its first command with `operation not permitted`. On port 8080 the capability isn't needed, so the Dockerfile removes it. `setcap -r` exits with an error when there's no capability left to remove, so the step allows that and then fails the build only if `getcap` still finds one. - **`USER app` with group 0.** The server runs as an ordinary user from the first instruction, so there's no user switch to fail. If the container is started as root anyway, root without capabilities can't bypass file permissions either, which is why `storage/`, `bootstrap/cache` and Caddy's directories belong to group 0 and are group-writable. - **`--listen "0.0.0.0:${PORT:-8080}"` with no domain.** Caddy only turns on automatic HTTPS when it's given a domain name. With just an address it serves plain HTTP on `PORT`, and HTTPS stays with the platform in front of it. - **`DATABASE_URL` becomes `DB_URL`.** Attaching a database on Candor Deploy writes `DATABASE_URL`, and Laravel reads `DB_URL`, so the script copies one into the other unless you've set `DB_URL` yourself. - **No `sqlite` connection by accident.** If a database is configured but `DB_CONNECTION` is unset or `sqlite`, Laravel would use its default `sqlite` connection block. With `DB_URL` set, that block connects to your MySQL or Postgres without that engine's own settings; with only `DB_HOST`, `migrate` creates a SQLite file inside the container. The script exits with an error that names the fix instead, and the error is on the Logs tab. - **No database, no migrations.** Without `DB_URL`, `DATABASE_URL` or `DB_HOST`, the script skips `migrate`. A new Laravel app keeps sessions, cache and queued jobs in the database by default, so in that case the script switches to cookie sessions, the file cache and the `sync` queue. It does that whether `SESSION_DRIVER`, `CACHE_STORE` and `QUEUE_CONNECTION` are unset or set to `database` (as a preview inherits them from production), and for `redis` when neither `REDIS_URL` nor `REDIS_HOST` is set. Any other driver you set is kept, and the Logs tab shows the drivers it used. Once a database is attached, set sessions and cache to `database` or `redis`, as above. - **`exec`.** The server replaces the shell, so it receives the platform's stop signal directly. A few things to adjust for your own app. The PHP version in the `FROM` line has to satisfy your `composer.lock`: ours resolved packages that need PHP 8.4. And the Dockerfile doesn't build front-end assets (see below). A note on `--ignore-platform-reqs`. The `composer:2` stage runs its own PHP, not the one in the final image, so the recipe tells Composer to skip its checks of the PHP version and extensions your packages require. The risk is that Composer then installs packages the runtime can't run, and you only find out when the app starts. Avoid it when you can: build with the same PHP as the runtime (for example, run `composer install` in a stage based on the same `dunglas/frankenphp` image), or set `config.platform.php` in `composer.json` to the runtime's version, and then drop the flag. If you keep it, make sure the `FROM` line's PHP and extensions satisfy everything in `composer.lock`. ## Who runs the queue and the scheduler? Queued jobs need `php artisan queue:work` running somewhere, and scheduled tasks need something to trigger `schedule:run` every minute. Starting either in the web container with `&` hides crashes and cuts off jobs mid-run during a deploy. On many hosts you'd run each as its own background worker. Candor Deploy's docs describe a worker kind (`kind: worker`: no port, no URL, no port health check), but the portal can't create one yet ([how Candor Deploy works](https://candordeploy.com/docs/how-candor-deploy-works/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Setting `kind: worker` in the `.candorfile` of an existing app doesn't turn it into a worker either: a change of kind isn't applied on deploy ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). Until the portal can create workers: - **Queued jobs:** set `QUEUE_CONNECTION=sync`. Don't leave the default: with a database attached, the start script leaves `QUEUE_CONNECTION` alone and Laravel uses the `database` queue, so every queued job, including queued mail and notifications, is written to the `jobs` table and never runs, because nothing runs `queue:work`. Nothing logs an error either. With `sync`, Laravel runs each job immediately, inside the request that dispatched it, so nothing needs a separate process. The trade-off is that the request waits for the job, a failed job fails that request, and a job has the same 30-second limit as the request (see below). Jobs that take longer have no home on Candor Deploy until the portal can create workers, so keep them short or run them elsewhere. - **Scheduled tasks:** use [scheduled jobs](https://candordeploy.com/changelog/scheduled-jobs/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist). You give a cron schedule and a path, and Candor Deploy calls that path in your app on time, with run history and a run-now button in the portal. Point it at a route that runs `Artisan::call('schedule:run')`, or one route per task. Give the `schedule:run` job the schedule `* * * * *` (every minute): `schedule:run` only runs the tasks due in the minute it's called, so on the Cron tab's hourly or every-15-minutes presets, a task like `dailyAt('13:30')` never runs and `everyFiveMinutes()` runs a third as often. No preset runs every minute, so type the schedule in. That route runs inside an ordinary web request, so PHP's web time limit applies (`max_execution_time`, 30 seconds by default; the image ships no `php.ini` that changes it), and Candor Deploy stops each run after 5 minutes. A long task gets cut off partway, so keep scheduled tasks short. Avoid sub-minute tasks such as `everyTenSeconds()`: they keep `schedule:run` going until the minute ends, past the 30 seconds, and the request dies with a fatal error. Your plan also limits how many scheduled jobs each app can have (two on Solo), so one `schedule:run` route usually beats one route per task. Each run is a small container that counts against your memory pool and needs 64 MB of it free. On Solo, a 512 MB app and a 512 MB database fill the 1024 MB pool, so every run is refused and shows as failed on the Runs list, and your scheduled tasks never run. Leave room: for example, set `memory: 448` in the app's `.candorfile` block, which takes effect on the next deploy. The scheduled requests go to your app's internal address, but the same route is also reachable at your public URL, so check who's calling. Each request carries an `X-Candor-Cron` header. When you add your first scheduled job, Candor Deploy creates a random `CANDOR_CRON_SECRET` in the app's environment, marked secret, and sends it in that header (the app's Cron tab says so too). The app only sees the new variable after its next deploy, so redeploy once after adding the first job. Read the variable through a config file, since `config:cache` makes `env()` return null outside config files. In `config/services.php`: ```php 'cron' => [ 'secret' => env('CANDOR_CRON_SECRET'), ], ``` And in `routes/web.php`, with the scheduled job's path set to `/cron/schedule`: ```php use Illuminate\Http\Request; use Illuminate\Support\Facades\Artisan; Route::get('/cron/schedule', function (Request $request) { $secret = (string) config('services.cron.secret'); $header = (string) $request->header('X-Candor-Cron'); abort_unless($secret !== '' && hash_equals($secret, $header), 404); Artisan::call('schedule:run'); return response()->noContent(); })->withoutMiddleware('web'); ``` `hash_equals` compares in constant time, and the empty-secret check keeps the route closed when the variable is missing or empty. `withoutMiddleware('web')` keeps the route out of the `web` group, so a call every minute doesn't start a session (with the default `database` driver, a new row in the `sessions` table each time) or set cookies. That matters for previews: `CANDOR_CRON_SECRET` is a production secret like `APP_KEY`, so once you add a scheduled job, no preview deploys until `CANDOR_CRON_SECRET` has a value under Environment → Preview. An empty value is fine, and with this route it means nobody can trigger the preview's scheduler. Don't put a token in the job's path instead: the portal shows paths in plain text to everyone with access to the project, and they end up in access logs. ## Do generated URLs use HTTPS? Candor Deploy issues and renews HTTPS certificates for every app automatically ([domains docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)), and your app itself serves plain HTTP on `PORT`. Laravel only sees the original HTTPS scheme if it trusts the proxy headers. Without that, `url()`, redirects and asset links come out as `http://`, and browsers block the mixed content. Trust the proxy in `bootstrap/app.php`: ```php ->withMiddleware(function (Middleware $middleware) { $middleware->trustProxies(at: '*'); }) ``` ## Are front-end assets built? If your app uses Vite, the production assets in `public/build` come from `npm run build`. Run it locally once to make sure it passes. The Dockerfile above doesn't run npm, so if your app uses Vite, add a build stage that runs `npm ci` and `npm run build` and copy its `public/build` into the final image. If they weren't built, any page whose view calls `@vite(...)` fails with a 500 error. The error page is generic when `APP_DEBUG=false`, and the Logs tab shows `Vite manifest not found at: /app/public/build/manifest.json`. Laravel's stock welcome page checks for the manifest first, so it renders either way; don't take it as proof the build worked. ## The checklist Before your first push, confirm each of these: - `composer.json` and `composer.lock` are committed, with the PHP version you test on. - `APP_KEY` is set from `key:generate --show` and marked secret, previews have a key of their own, and `.env` is not in git. - Database credentials you set yourself are marked secret, a database attached on or before 30 September 2026 has been attached again, and previews have their own values (or empty ones), never production's. - `APP_ENV=production`, `APP_DEBUG=false` and `APP_URL` are set. - `DB_CONNECTION` names your engine (`mysql` or `pgsql`), and the connection string is in `DB_URL` or, when attached, `DATABASE_URL`. - The `.candorfile` sets `kind: app` and `builder: dockerfile`, and after creating the app (preferably with **+ App**) you set its environment and deploy a second time. The server runs as an ordinary user, with no user switching, on `PORT` on all interfaces, not via `artisan serve`. - Uploads live in an external object store; sessions and cache in the database or Redis. - If your views use `@vite`, the image builds the front-end assets. - `LOG_CHANNEL=stderr`. - Migrations run with `--force` at startup and follow expand, then contract. - Queued jobs run with the `sync` driver (the default `database` queue never runs them), and scheduled tasks are triggered by a scheduled job that runs every minute (`* * * * *`), whose route checks `X-Candor-Cron`, with 64 MB of the memory pool left free for its runs, not by `&` in the web container. - You know when a deploy can mean downtime for your app ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist)). - Trusted proxies are configured so URLs stay on HTTPS. ## Ready to ship it? If your app passes the list above, the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-laravel-app-from-git-production-checklist) walks you from connecting the repo to a live URL. --- # Deploying a Ruby on Rails App from git: What to Check First URL: https://candordeploy.com/blog/deploy-rails-app-from-git-what-to-check-first/ **TL;DR:** Most failed first Rails deploys come down to a handful of things: a `Gemfile.lock` without a Linux platform, a missing `RAILS_ENV` or `SECRET_KEY_BASE`, Puma not listening on `PORT`, or migrations nobody ran. Check those before your first push and the rest is usually routine. This guide assumes a Rails 7 or 8 app with Postgres and Puma, deployed from a git repository to a container-based host. Where Candor Deploy behaves in a specific way, we link the doc that says so. ## Does your Gemfile.lock include a Linux platform? If you develop on a Mac, your lockfile may only list `arm64-darwin` or `x86_64-darwin`. Gems with native extensions, like `nokogiri` or `pg`, then fail to resolve on a Linux build machine, and the error buried in the build log looks unrelated to the real cause. Fix it once, locally: ```bash bundle lock --add-platform x86_64-linux git add Gemfile.lock && git commit -m "Add Linux platform to lockfile" ``` Commit both `Gemfile` and `Gemfile.lock`. On Candor Deploy, a `Gemfile` at the root of the directory being built marks the app as Ruby, and the build runs on Nixpacks without any configuration ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). If the Rails app lives in a subdirectory of a monorepo, set that directory as the app's root instead of moving files. ## Is RAILS_ENV set to production? Set `RAILS_ENV=production` in the app's environment, in the portal's Environment tab or in a `.candorfile`. Do this whichever secret option below you pick, and don't count on the build setting it for you. Without it, Rails runs in development: requests to your app's URL are rejected as a blocked host, and anything that does get through shows detailed error pages. ## Where does the production secret come from? Rails refuses to boot in production without a secret key base. You have two options: - Set `RAILS_MASTER_KEY` to the contents of `config/master.key` (or the per-environment key) so Rails can decrypt your committed credentials file. - Set `SECRET_KEY_BASE` directly, and keep other secrets as plain environment variables. Never commit `master.key`. Rails puts it in `.gitignore` for you, so check that nobody removed the line. If you don't use encrypted credentials at all, the second option is the simplest. In a `.candorfile` on Candor Deploy you can ask the platform to generate a random secret, so the value never sits in your repo or your clipboard ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)): ```yaml services: web: env: RAILS_ENV: production SECRET_KEY_BASE: { generate: hex32 } ``` Keep in mind that changing `SECRET_KEY_BASE` later signs everyone out and invalidates signed cookies, so set it once and leave it. ## Is Puma listening on the right port and address? This is the most common first-deploy failure in every language, not just Ruby. The default `config/puma.rb` already reads the port from the environment: ```ruby port ENV.fetch("PORT", 3000) ``` Puma's `port` directive binds to all interfaces, which is what you want inside a container. Problems start when someone replaces it with `bind "tcp://127.0.0.1:3000"` or starts the app with a hard-coded `-p` flag. Then the server runs happily but nothing outside the container can reach it. Candor Deploy always sets `PORT` (8080 by default) and health-checks the app by connecting to it ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). An app that listens anywhere else builds fine but never goes live. Whether the old version keeps serving while that happens depends on your plan and setup; see [when migrations run](#when-do-migrations-run) below. We covered the general version of this in [the $PORT and 0.0.0.0 fix](https://candordeploy.com/blog/app-works-locally-fails-after-deploy-port-fix/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first). ## How should database.yml find the database? Rails merges `DATABASE_URL` into the settings for the current environment automatically. On Rails 7, a production block this small is enough: ```yaml production: <<: *default url: <%= ENV["DATABASE_URL"] %> ``` Leave out hard-coded hosts, usernames and passwords. Also check the `pool` setting: it should be at least the number of Puma threads, or requests will wait for a connection under load. The generated default ties it to `RAILS_MAX_THREADS`, which is the right idea. If you also run Solid Queue, its worker threads, dispatcher and supervisor need connections too, and by default they run as separate processes, each with its own pool. Size `pool` so each process has enough for its own threads: Puma's threads in the web process, and the `threads` setting in `config/queue.yml` plus a couple to spare in each Solid Queue process. On Candor Deploy, attaching a Postgres database to an app writes its connection string into the app's environment as `DATABASE_URL`. The database is never exposed to the internet, so only your own services can reach it, and like any environment change the new value reaches the app on its next deploy ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). Rails 8 apps generated with the Solid gems have a nested production block instead, with `primary`, `cache`, `queue` and `cable` entries, and `production.rb`, `config/cache.yml` and `config/cable.yml` refer to those entries by name. Don't replace it with the flat block above, or boot fails on a missing database configuration. Set `url: <%= ENV["DATABASE_URL"] %>` on `primary`, then choose one of two setups for the rest: - **Separate databases.** Give `cache`, `queue` and `cable` their own database and URL each. With `primary`, that's four databases, so you need a plan that allows four; Solo allows one. - **One database for everything.** Remove the extra entries and the settings that point at them (`config.solid_queue.connects_to` in `production.rb`, `database: cache` in `config/cache.yml`, `connects_to` in `config/cable.yml`), then copy the contents of `db/queue_schema.rb`, `db/cache_schema.rb` and `db/cable_schema.rb` into normal migrations. Just pointing every entry at `DATABASE_URL` isn't enough: those tables are defined only in the separate schema files, so they may never be created in your one database. Either way, don't leave any of them pointing at SQLite files that vanish when the container is replaced. ## Are assets precompiled and actually served? Run `bin/rails assets:precompile` locally with `RAILS_ENV=production` before your first deploy. If it fails on your machine, it'll fail in the build too, and the local error is easier to read. A local success doesn't prove the build will pass, though. On your machine `config/master.key` exists, but it's gitignored, so it isn't there when the build runs, and `RAILS_MASTER_KEY` or `SECRET_KEY_BASE` may not be either. An initializer that reads `Rails.application.credentials` (Devise, Stripe keys and the like) then fails the build with a missing `secret_key_base` or a decryption error. Two habits avoid this: - Precompile with `SECRET_KEY_BASE_DUMMY=1` (Rails 7.1 and newer), which gives Rails a throwaway secret for the build. It belongs to the build step only (the Rails 8 Dockerfile sets it on its precompile line). Never set it in the app's Environment tab or `.candorfile` `env`: the running app gets those too, and with the dummy variable set Rails ignores your real `SECRET_KEY_BASE` and signs everyone out on every restart. To test the build case locally, move `config/master.key` aside and run `SECRET_KEY_BASE_DUMMY=1 RAILS_ENV=production bin/rails assets:precompile`. - Don't read credentials when an initializer loads. Read them lazily, when a request or job first needs them. Then look at `config/environments/production.rb`. Newer apps serve files from `public/` by default. Older ones gate it on an environment variable: ```ruby config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? ``` If that's what your file says and nothing sits in front of Rails to serve static files, set `RAILS_SERVE_STATIC_FILES=1`, or your pages will load without CSS or JavaScript. ## When do migrations run? Somebody has to run them, and on many hosts that somebody is you. Candor Deploy has no separate release-phase hook: schema migrations are the app's job, run from its start command or Dockerfile entrypoint ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). For Rails, put the steps in a small script: ```sh #!/bin/sh # scripts/start.sh set -e bin/rails db:prepare exec bundle exec puma -C config/puma.rb ``` Then point the start command at it: ```yaml services: web: start: sh scripts/start.sh ``` `db:prepare` creates the database if it doesn't exist and runs pending migrations otherwise. On Candor Deploy the attached database already exists but is empty on the first deploy. On Rails 7.1 and newer, `db:prepare` loads the schema into an empty database and then runs `db/seeds.rb`, so check what's in it before your first push: dev fixtures or demo users with known passwords don't belong in production. On Rails 7.0 it runs every migration from scratch instead, so make sure your old migrations still run cleanly. `set -e` stops at the first failure, so a broken migration never leads to a half-started app, and `exec` hands the process to Puma so it receives shutdown signals directly. Keep migrations quick, since Puma only starts listening once they finish. Whether the old version keeps serving during a deploy depends on two things. If the app has a volume attached, the old version always stops before the new one starts. Without a volume, the new version starts while the old one is still serving, as long as your memory pool has room for a second copy of the app. On Solo with a 512 MB app and a 512 MB database the pool is full, so the old version stops first. Whenever the old version stops first, the site is down while `db:prepare`, any migrations and the Rails boot run, and a failed deploy means downtime until you roll back ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). Either way, a rollback runs old code against the new schema, so write migrations that the old code can still run against: add first, remove later. Our guide to [running migrations on deploy safely](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first) walks through the expand-then-contract pattern. ## Where do the logs go? To stdout. Rails 7.1 and newer log to standard output in production by default. Older apps often check `RAILS_LOG_TO_STDOUT`, so set it if your `production.rb` mentions it. Logs written to `log/production.log` inside a container are hard to read and disappear on the next deploy. On Candor Deploy, build output is on the Deployments tab and everything your app prints after it starts is on the Logs tab ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). A boot error about a missing secret or a failed database connection shows up there as one clear line. ## What about background jobs? Sidekiq usually runs as its own process (Sidekiq 7 and newer also have an embedded mode that runs inside another process). Solid Queue and GoodJob can run either separately or inside the web server: Rails 8's generated `config/puma.rb` includes `plugin :solid_queue if ENV["SOLID_QUEUE_IN_PUMA"]`, and GoodJob has an async mode that runs jobs in the web process. What you shouldn't do is start a separate worker in the same container with `&`: if it crashes, nothing notices, and a deploy can cut off jobs mid-run. Candor Deploy runs workers (`kind: worker`: a background process with no port, no URL and no port health check), but the portal can't create one yet ([how Candor Deploy works](https://candordeploy.com/docs/how-candor-deploy-works/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). Setting `kind: worker` in the `.candorfile` of an existing app doesn't turn it into a worker either: a change of kind isn't applied on deploy ([v1.2.48 changelog](https://candordeploy.com/changelog/v1248/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). Until the portal can create workers, we recommend running Solid Queue inside Puma by setting `SOLID_QUEUE_IN_PUMA=1`. Mind the plan limits, too. Solo allows one database and a 1 GB memory pool, and each service takes 512 MB by default, so a web app, a worker, Postgres and Redis won't fit. On Solo, keep the queue in Postgres with Solid Queue in Puma. On larger plans, attaching a Redis database writes its address as `REDIS_URL` ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). ## Should you use the Rails-generated Dockerfile? New Rails apps ship with a production Dockerfile, and it's a good one. But you don't need it to deploy, and many teams keep a Dockerfile around that was really meant for local work. On Candor Deploy, a Dockerfile in your repo is ignored unless you opt in with `builder: dockerfile` (or a `dockerfile:` path) in your `.candorfile` ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first)). Opt in when you need system packages the auto-detected build doesn't include, or when you want production to match your CI image exactly. If you opt in with the Rails 8 Dockerfile, check the port first. It starts the app with `./bin/thrust ./bin/rails server`, and Thruster listens on `HTTP_PORT` (80 by default) while it runs Puma on port 3000 behind it, so nothing listens on the `PORT` Candor Deploy health-checks. Set `HTTP_PORT=8080` in the app's environment so Thruster listens on the default `PORT`. ## The checklist Before your first push, confirm each of these: - `Gemfile.lock` lists `x86_64-linux` and is committed. - `RAILS_ENV=production` is set in the app's environment or `.candorfile`. - `SECRET_KEY_BASE` or `RAILS_MASTER_KEY` is set, and `master.key` is not in git. - Puma uses `port ENV.fetch("PORT", ...)`, with no `127.0.0.1` bind. - `database.yml` reads `DATABASE_URL` (on Rails 8, keeping the Solid entries consistent), and `pool` covers the threads of each process that uses it (Puma, and each Solid Queue process). - `assets:precompile` succeeds locally in production mode without `master.key` (use `SECRET_KEY_BASE_DUMMY=1`), and static files are served. - Migrations run from the start command and follow expand, then contract, and `db/seeds.rb` is safe to run in production. - If you build from the Rails 8 Dockerfile, the port Thruster listens on matches the app's port. - Logs go to stdout. - Background jobs have a home: for now, Solid Queue in Puma. ## Ready to ship it? If your app passes the list above, the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-rails-app-from-git-what-to-check-first) walks you from connecting the repo to a live URL. --- # Deploying a Go Web Service: A Minimal Production Checklist URL: https://candordeploy.com/blog/deploy-go-web-service-production-checklist/ **TL;DR:** A Go service is production-ready when it listens on `0.0.0.0` and the `PORT` variable, sets server timeouts, shuts down cleanly on `SIGTERM`, logs to stdout and reads every setting from the environment. Go makes the binary easy; these few lines of discipline are what keep it running once real traffic arrives. This checklist assumes a plain `net/http` service with Postgres, Go 1.22 or newer, and a git-based deploy. Everything here works the same with chi, echo or gin, because they all sit on top of `http.Server`. ## What does a deployable Go repo look like? Keep it boring: ```text myservice/ ├── go.mod ├── go.sum ├── main.go ├── internal/ │ ├── db/ │ └── handlers/ └── migrations/ ``` Commit `go.sum`. Without it, builds can resolve different dependency versions than the ones you tested, and some build tools refuse to run at all. On Candor Deploy, a `go.mod` at the root of the directory being built marks it as a Go app, and the build runs on Nixpacks with no configuration ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). For a monorepo, point the app at its subdirectory instead of moving files around. ## Which port and address should a Go server listen on? This is the most common first-deploy failure, in any language. Locally you probably wrote `http.ListenAndServe(":8080", mux)` or, worse, `"localhost:8080"`. In a container, `localhost` means "only reachable from inside this container", so the platform's router can't get in. Read the port from the environment and bind to all interfaces: ```go port := os.Getenv("PORT") if port == "" { port = "8080" // local default } addr := "0.0.0.0:" + port ``` Candor Deploy always sets `PORT` (8080 by default), routes traffic to it and health-checks the app by connecting to it. An app that listens somewhere else sits in Deploying and never goes live, while the previous version keeps serving ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). We wrote up the full story in [the $PORT and 0.0.0.0 fix](https://candordeploy.com/blog/app-works-locally-fails-after-deploy-port-fix/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist). ## Why do Go servers need explicit timeouts? `http.ListenAndServe` uses a zero-value `http.Server`, which has no timeouts. A slow or malicious client can hold a connection open indefinitely, and enough of those exhaust file descriptors or memory. Build the server yourself: ```go srv := &http.Server{ Addr: addr, Handler: mux, ReadHeaderTimeout: 5 * time.Second, ReadTimeout: 15 * time.Second, WriteTimeout: 30 * time.Second, IdleTimeout: 60 * time.Second, } ``` Pick numbers that fit your slowest legitimate request. If one endpoint streams or handles big uploads, give it its own handling with `http.ResponseController` rather than raising the global limit for everything. ## How do you shut a Go service down gracefully? When a new version rolls out, the old process gets stopped. Container runtimes generally send `SIGTERM` first and force-kill a little later. If your service exits instantly, in-flight requests get cut off. If it ignores the signal, it gets killed anyway. Handle it explicitly: ```go ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGTERM, os.Interrupt) defer stop() go func() { if err := srv.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { log.Fatalf("listen: %v", err) } }() <-ctx.Done() shutdownCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second) defer cancel() if err := srv.Shutdown(shutdownCtx); err != nil { log.Printf("shutdown: %v", err) } db.Close() ``` `Shutdown` stops accepting new connections and waits for active ones to finish, up to your deadline. Close the database pool after the server, not before, so the last requests can still query. On Candor Deploy, the new version starts alongside the old one and has to accept connections on its port before traffic switches, and only then is the old version retired ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). Clean shutdown on your side means those retiring requests finish instead of erroring. ## Where should configuration come from? From the environment, every time. Hard-coded DSNs and API keys end up in git history, and per-environment config files drift. A small helper keeps it tidy: ```go func mustEnv(key string) string { v := os.Getenv(key) if v == "" { log.Fatalf("missing required env var %s", key) } return v } dbURL := mustEnv("DATABASE_URL") ``` Failing loudly at startup is a feature. A missing variable shows up as one clear line in the runtime log instead of a confusing nil-pointer panic on the first request. When you attach a Postgres database to an app on Candor Deploy, its connection string lands in the app's environment as `DATABASE_URL`, and the change reaches the running app on its next deploy ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). App-specific settings can go in the portal's Environment tab or in the `env` block of a `.candorfile` ([.candorfile docs](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). ## How should a Go service connect to Postgres? Use a pool and set its limits. With pgx: ```go cfg, err := pgxpool.ParseConfig(dbURL) if err != nil { log.Fatalf("db config: %v", err) } cfg.MaxConns = 10 cfg.MaxConnIdleTime = 5 * time.Minute pool, err := pgxpool.NewWithConfig(ctx, cfg) if err != nil { log.Fatalf("db connect: %v", err) } ``` Two things matter more than the exact numbers. First, keep `MaxConns` well below the database's connection limit, especially if you run more than one instance or a separate worker. Second, don't fail forever if the database is a few seconds slower to accept connections than your app is to start. A short retry loop with a deadline is enough. A database on Candor Deploy is never exposed to the internet; only your own services can reach it ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). That's the right default, and it means you connect through `DATABASE_URL` from inside the app rather than from your laptop's psql against a public host. ## What about database migrations? Run them as a separate, explicit step before the new code starts serving, and write them so the old version still works against the new schema. Tools like goose, golang-migrate or atlas all support a `migrate up` command you can call from a start script, or from a subcommand of your own binary (`./myservice migrate && ./myservice serve`). The pattern that keeps rollouts safe is expand, then contract: add new columns and tables first, ship code that uses them, and remove old ones only in a later deploy. We covered it step by step in [running database migrations on deploy safely](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist). ## What should a Go service log? Write structured logs to stdout and let the platform collect them. The standard library has this built in since Go 1.21: ```go logger := slog.New(slog.NewJSONHandler(os.Stdout, nil)) slog.SetDefault(logger) slog.Info("starting", "addr", addr) ``` Log one line when you start listening, including the address. When a deploy hangs, that single line tells you right away whether the process started and where it's listening. On Candor Deploy, build output is on the Deployments tab and what your app prints after it starts is on the Logs tab ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). ## Do you need a Dockerfile for Go? Usually not. Go compiles to a single binary, and auto-detected builds handle `go build` well. Reach for a Dockerfile when you need something specific: CGO with system libraries, a distroless or scratch runtime image, or a build that has to match your CI exactly. On Candor Deploy, a Dockerfile in your repo is ignored unless you opt in with `builder: dockerfile` (or a `dockerfile:` path) in a `.candorfile` ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist)). That's deliberate: many repos carry Dockerfiles meant for local development, not production. ## The checklist Before your first deploy, confirm each of these: - `go.mod` and `go.sum` are committed. - The server listens on `0.0.0.0` and `os.Getenv("PORT")`. - `http.Server` has read, write, header and idle timeouts. - `SIGTERM` triggers `srv.Shutdown` with a deadline, then the DB pool closes. - Every secret and setting comes from the environment, and required ones fail fast. - The Postgres pool has a `MaxConns` below the database's limit. - Migrations run before serving and follow expand, then contract. - Logs go to stdout, with one clear "listening on" line at startup. ## Ready to ship it? If your repo passes the list above, the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-go-web-service-production-checklist) walks you from connecting the repo to a live URL. --- # How to Deploy a Django App from git: Settings, Static Files and Migrations URL: https://candordeploy.com/blog/deploy-django-app-settings-static-files-migrations/ **TL;DR:** Django deploys cleanly from git once four things are true: settings come from environment variables, static files are collected and served by the app, gunicorn listens on `0.0.0.0` and the `PORT` variable, and `migrate` runs before the server starts. Most first-deploy failures trace back to one of those, usually `ALLOWED_HOSTS` or a missing `collectstatic`. This guide walks through each step with files you can copy. It assumes Django 5 and Postgres, but almost everything applies to any recent Django version. ## What does a deployable Django project look like? Here's a minimal layout: ```text mysite/ ├── mysite/ │ ├── settings.py │ ├── urls.py │ └── wsgi.py ├── blog/ # your apps ├── manage.py ├── requirements.txt ├── scripts/ │ └── start.sh └── .candorfile ``` On Candor Deploy, a `requirements.txt` or `pyproject.toml` marks the repo as a Python app, and Django is one of the frameworks it recognizes ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations)). The build runs on Nixpacks, so you don't need a Dockerfile unless you want one. Pin what you deploy: ```text Django==5.1.* gunicorn==23.* psycopg[binary]==3.2.* dj-database-url==2.* whitenoise==6.* ``` ## How should Django settings work in production? Read everything that differs between your laptop and the server from the environment. Hard-coded secrets end up in git, and a hard-coded `DEBUG = True` leaks stack traces to anyone who hits an error. ```python # mysite/settings.py (excerpt) import os import dj_database_url SECRET_KEY = os.environ["DJANGO_SECRET_KEY"] DEBUG = os.environ.get("DJANGO_DEBUG", "") == "1" ALLOWED_HOSTS = [ h.strip() for h in os.environ.get("DJANGO_ALLOWED_HOSTS", "").split(",") if h.strip() ] CSRF_TRUSTED_ORIGINS = [f"https://{h}" for h in ALLOWED_HOSTS] DATABASES = { "default": dj_database_url.config(conn_max_age=60, conn_health_checks=True) } ``` Using `os.environ["DJANGO_SECRET_KEY"]` with square brackets is deliberate. If the key is missing, the app fails loudly at startup instead of running with an empty secret. `dj-database-url` reads `DATABASE_URL` and turns it into Django's `DATABASES` dict. Django's own Postgres backend accepts the plain `postgresql://` scheme, so you don't need the driver-specific URL that SQLAlchemy projects do. ## Why does my Django app return 400 Bad Request after deploying? Nine times out of ten it's `ALLOWED_HOSTS`. With `DEBUG` off, Django rejects any request whose `Host` header isn't on the list, and it answers with a bare 400 that doesn't say why. List every hostname the app answers on. On Candor Deploy, each app gets a generated address of the form `-.candorhost.app`, shown at the top of the app's page in the portal, plus any custom domains you add ([domains and HTTPS docs](https://candordeploy.com/docs/deploy-domains-and-https/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations)). Put them all in one variable: ```text DJANGO_ALLOWED_HOSTS=shop-42.candorhost.app,www.example.com ``` The settings excerpt above also builds `CSRF_TRUSTED_ORIGINS` from the same list. Django 4 and later check the `Origin` header on form posts, so a missing entry shows up as "CSRF verification failed" the first time you log in to the admin. ## How do you serve static files without a separate server? Django doesn't serve static files when `DEBUG` is off. The simplest fix for a small app is WhiteNoise, which serves them from the app process with proper caching headers. ```python # mysite/settings.py (excerpt) MIDDLEWARE = [ "django.middleware.security.SecurityMiddleware", "whitenoise.middleware.WhiteNoiseMiddleware", # right after SecurityMiddleware # ...the rest of your middleware ] STATIC_URL = "static/" STATIC_ROOT = BASE_DIR / "staticfiles" STORAGES = { "default": {"BACKEND": "django.core.files.storage.FileSystemStorage"}, "staticfiles": {"BACKEND": "whitenoise.storage.CompressedManifestStaticFilesStorage"}, } ``` Then run `python manage.py collectstatic --noinput` before the server starts. If you skip it, the manifest storage raises an error on the first page that references a static file, so you'll notice quickly. User uploads (`MEDIA_ROOT`) are a different story. A container's filesystem is replaced on every deploy, so anything written to local disk disappears. Send uploads to object storage from the start. ## Where do Django migrations run? In your app's own startup, before gunicorn begins listening. The Candor Deploy databases docs say it plainly: schema migrations are your app's job, run them when your app starts, and there's no separate release-phase hook. The database is also reachable only from your own services, never from the internet, so you can't run `migrate` from your laptop against production ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations)). One start script handles all three steps: ```sh #!/bin/sh # scripts/start.sh set -e python manage.py migrate --noinput python manage.py collectstatic --noinput exec gunicorn mysite.wsgi:application \ --bind "0.0.0.0:${PORT:-8080}" \ --workers "${WEB_CONCURRENCY:-2}" \ --access-logfile - ``` `set -e` stops at the first failure, so a broken migration never leads to a half-started app. `exec` hands the process to gunicorn so it receives shutdown signals directly, and `--access-logfile -` sends request logs to stdout where you can read them. The port matters as much as the migrations. On Candor Deploy, your app listens on the port in the `PORT` environment variable, which defaults to 8080; traffic is routed there and the app is health-checked on it, so an app on a hard-coded port builds and then never comes live ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations)). Binding to `0.0.0.0` rather than `127.0.0.1` lets the router reach the process at all. Keep each migration backward compatible with the code that's still running during a deploy. Our guide to [expand/contract migrations](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations) shows how to rename or drop a column without breaking the old version. ## How do you tell the platform how to start the app? Python apps have no universal start convention, so be explicit. On Candor Deploy, a [`.candorfile`](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations) at the repo root sets the start command, and it takes priority over anything detected: ```yaml services: web: start: sh scripts/start.sh database: postgres env: DJANGO_SECRET_KEY: { generate: hex32 } ``` `database: postgres` provisions a Postgres database and wires its connection string into your environment. `{ generate: hex32 }` mints a random secret on the platform side, so the Django secret key never lives in your repository. If you'd rather create the database in the portal, the **Attach a database** control on the app's Environment tab writes the URI into your app as `DATABASE_URL`; redeploy afterward, since environment changes reach the app on its next deploy. ## What else should you check before the first deploy? - **Workers.** Each gunicorn worker is a separate Python process with its own memory. Two is a sensible start on a small plan; raise it only if memory allows. - **Admin account.** Create a superuser through a one-off management command run by the app itself, or a small data migration, since you can't reach the database from your laptop. - **Health route.** Add a cheap view that returns 200 without touching the database, so you have something to curl after each deploy. - **Logging.** Leave Django's logging pointed at the console. Anything written to stdout shows up in your runtime logs. ## What happens when something goes wrong? Read the two logs in order. Build output, on the Deployments tab, tells you whether dependencies installed and the stack was detected. Runtime logs, on the Logs tab, show your migration output, the gunicorn banner and any traceback ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations)). The failures you'll see most: 1. **Stuck in Deploying.** Gunicorn isn't bound to `0.0.0.0:$PORT`. Check the `--bind` flag. 2. **400 Bad Request on every page.** The hostname is missing from `DJANGO_ALLOWED_HOSTS`. 3. **`KeyError: 'DJANGO_SECRET_KEY'`.** The variable isn't set yet, or you saved it without redeploying. 4. **Connection refused right after creating the database.** A fresh Postgres takes a moment to generate credentials. Redeploy once its Connect tab shows a connection URI. ## What should you do next? Add `scripts/start.sh` and a `.candorfile` to your Django repo, run the script once locally with `PORT=8080 sh scripts/start.sh`, then push. The [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-django-app-settings-static-files-migrations) walks through connecting the repo and watching your first build. *Written with help from our AI assistant.* --- # How to Deploy a FastAPI + Postgres App with git push URL: https://candordeploy.com/blog/deploy-fastapi-postgres-app-git-push/ **TL;DR:** A FastAPI app deploys cleanly from git when it does four things: pins its dependencies, starts with a production server that listens on `0.0.0.0` and the `PORT` variable, reads its database from `DATABASE_URL` with the right driver scheme, and runs migrations before it starts serving. Get those right and every push becomes a deploy. This guide walks through each one with files you can copy, using SQLAlchemy and Alembic, the most common FastAPI + Postgres setup. ## What does a deployable FastAPI project look like? Here's a minimal layout: ```text my-api/ ├── app/ │ ├── __init__.py │ ├── main.py # FastAPI() lives here │ └── db.py # engine + session ├── alembic/ │ └── versions/ ├── alembic.ini ├── requirements.txt ├── scripts/ │ └── start.sh └── .candorfile ``` Two files matter most for detection. On Candor Deploy, a `pyproject.toml` or `requirements.txt` marks the repo as a Python app, and FastAPI is one of the frameworks it recognizes ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push)). The build itself runs on Nixpacks, so there's no Dockerfile to write unless you want one. Pin your dependencies so the server builds exactly what you tested: ```text fastapi==0.115.* uvicorn[standard]==0.32.* sqlalchemy==2.0.* psycopg[binary]==3.2.* alembic==1.14.* ``` Version ranges like these keep you on known minor versions. If you use a lockfile tool, commit the lockfile too. ## Why won't my FastAPI app answer after it deploys? Almost always, it's the port or the interface. Locally you run `uvicorn app.main:app --reload`, which listens on `127.0.0.1:8000`. In a container, `127.0.0.1` means "only this container," so the platform's router can't reach it, and port 8000 is usually not the port it's sending traffic to. On Candor Deploy the contract is one line: listen on the port in the `PORT` environment variable. It defaults to 8080, traffic is routed to it, and the app is health-checked by opening connections to it. An app on a hard-coded port builds fine and then never comes live ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push)). The troubleshooting guide adds the second half: listen on all interfaces, `0.0.0.0`, not just localhost. So the production command is: ```sh uvicorn app.main:app --host 0.0.0.0 --port "${PORT:-8080}" ``` Drop `--reload` in production. It watches files for changes, which costs resources and does nothing useful in a container. ## How should a FastAPI app connect to Postgres? Read the connection string from the environment, never from code. One detail trips up most SQLAlchemy projects: psycopg 3 wants the URL scheme `postgresql+psycopg://`, while many hosts hand you plain `postgresql://`. With the plain scheme, SQLAlchemy looks for the older psycopg2 driver and crashes at startup. A small normalizer makes your app work either way: ```python # app/db.py import os from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker def database_url() -> str: url = os.environ["DATABASE_URL"] if url.startswith("postgres://"): url = "postgresql://" + url[len("postgres://"):] if url.startswith("postgresql://"): url = "postgresql+psycopg://" + url[len("postgresql://"):] return url engine = create_engine(database_url(), pool_pre_ping=True) SessionLocal = sessionmaker(bind=engine, autoflush=False) ``` `pool_pre_ping=True` checks a pooled connection before using it, which saves you from stale-connection errors after a database restart. On Candor Deploy, the **Attach a database** control on your app's Environment tab writes the connection URI into your app as `DATABASE_URL`, and detection is driver-aware: a SQLAlchemy project on psycopg 3 gets a `postgresql+psycopg://` URL ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push)). The [databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push) also say to edit the variable if your framework complains about the driver. The normalizer above means you don't have to think about it. Keep the database URL in one place. Alembic should read the same function rather than a hard-coded `sqlalchemy.url` in `alembic.ini`: ```python # alembic/env.py (excerpt) from app.db import database_url config.set_main_option("sqlalchemy.url", database_url()) ``` ## Where do Alembic migrations run? In your app's own startup, before the server begins listening. The Candor Deploy databases docs are direct about it: schema migrations are your app's job, run them when your app starts, and there's no separate release-phase hook. The database is also reachable only from your own services, never from the internet, so you can't run `alembic upgrade head` from your laptop against production. A start script handles both steps: ```sh #!/bin/sh # scripts/start.sh set -e echo "Applying migrations..." alembic upgrade head echo "Starting FastAPI on port ${PORT:-8080}" exec uvicorn app.main:app --host 0.0.0.0 --port "${PORT:-8080}" ``` `set -e` stops at the first failure, so a broken migration never leads to a half-started app. `exec` hands the process over to uvicorn so it receives shutdown signals directly. Because the new version only goes live after it answers on its port, a failing migration leaves your previous version serving. Keep each migration backward compatible with the code that's already running, and save long backfills for a separate job. Our guide to [expand/contract migrations](https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push) covers how. ## How do you tell the platform how to start the app? Python apps don't have a universal start convention the way Node has `npm start`, so be explicit. On Candor Deploy, a [`.candorfile`](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push) in your repo sets the start command, and it wins over anything detected: ```yaml services: web: start: sh scripts/start.sh database: postgres ``` The `database` key asks for a Postgres database and wires its connection string into your environment. If you'd rather create the database in the portal and attach it there, leave that line out. The file is optional; everything in it can be set elsewhere, but committing it means the config travels with your code. ## What else should you check before the first deploy? A short checklist: - **Health endpoint.** Add a cheap route such as `@app.get("/healthz")` that returns `{"ok": True}` without touching the database. It gives you something to curl after a deploy. - **Secrets.** Put `SECRET_KEY`, API keys and similar values on the app's Environment tab, one `KEY=value` per line. Environment changes apply on the next deploy, so redeploy after saving. - **Workers.** If you use one, set `--workers` to fit your memory. Each worker is a separate Python process with its own memory, so more isn't automatically better on a small plan. - **CORS.** If a separate frontend calls the API from another origin, configure `CORSMiddleware` with your real frontend origin rather than `*`. - **Logs.** Print to stdout. Uvicorn's access log already does, and so does Python's `logging` with a default stream handler. ## What happens when something goes wrong? Read the two logs in order. Build output, on the Deployments tab, tells you whether dependencies installed and the stack was detected. Runtime logs, on the Logs tab, show the uvicorn banner, your migration output and any traceback ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push)). The three failures you'll see most: 1. **Stuck in Deploying.** The app isn't listening on `0.0.0.0:$PORT`. Check your start command. 2. **`ModuleNotFoundError: psycopg2`.** The URL scheme is plain `postgresql://`. Use the normalizer above. 3. **Connection refused right after creating the database.** A fresh Postgres takes a moment to generate credentials. Redeploy once its Connect tab shows a connection URI. ## What should you do next? Add `scripts/start.sh` and a `.candorfile` to your FastAPI repo, run it once locally with `PORT=8080 sh scripts/start.sh`, then push. The [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-fastapi-postgres-app-git-push) walks through connecting the repo and watching your first build. *Written with help from our AI assistant.* --- # How to Run Database Migrations on Deploy Safely: The Expand/Contract Pattern URL: https://candordeploy.com/blog/run-database-migrations-on-deploy-safely-expand-contract/ **TL;DR:** Running schema migrations when your app starts is fine, as long as every migration leaves the database usable by both the old and the new version of your code. The expand/contract pattern does exactly that: add new things first, switch the code over, and only remove old things in a later deploy. This guide covers why startup migrations break, how to split a risky change into safe steps, and a small startup script that runs migrations before your server starts listening. ## Why do migrations on startup break deploys? Most rolling deploys share one property: for a short time, two versions of your app are running against the same database. The new version has to come up before the old one goes away. On Candor Deploy, that's how every rollout works. The [builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract) describe it: the new version starts alongside the old one and must accept connections on its port before traffic switches, and only then is the old version retired. Now picture a migration that renames `users.name` to `users.full_name`. The new version starts, runs the rename, and begins listening. Meanwhile the old version is still serving traffic, and every query it sends for `users.name` now fails. You get errors in production, and the new code hasn't done anything wrong. The same thing happens if the new version fails to start. A failed new version never replaces a working old one on Candor Deploy, which is what you want. But if the migration already ran before the crash, the old version is now running against a schema it doesn't understand. The rule that follows: **every migration must be compatible with the code that is already running.** ## Where should migrations run on Candor Deploy? In your app's own startup. The [databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract) are direct about it: schema migrations are your app's job, so run them when your app starts, from your Dockerfile's entrypoint or your repo's own start command. There's no separate release-phase hook. There's also a practical reason. Your database is reachable only from your own services, never from the internet, so you can't run migrations from your laptop against production. The app container is where migrations belong. Your app finds the database through `DATABASE_URL`, which the **Attach a database** control writes into its environment (same page). You can set the start command in your repo (for example the `start` script in `package.json`) or in a [`.candorfile`](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract), which overrides the repo default. ## What does a safe startup script look like? Keep it boring: migrate, then start the server. If the migration fails, exit non-zero so the new version never starts serving. ```sh #!/bin/sh # scripts/start.sh set -e echo "Running migrations..." npx prisma migrate deploy # or: alembic upgrade head, python manage.py migrate, # bundle exec rails db:migrate, goose up, ... echo "Starting server on port ${PORT}" exec node dist/server.js ``` Then point your start command at it: ```json { "scripts": { "start": "sh scripts/start.sh" } } ``` A few details matter here: - **`set -e`** stops the script at the first failure, so a broken migration never leads to a half-started app. - **`exec`** replaces the shell with your server process, so signals reach your app directly. - **Use the "deploy" or "apply" command, not the "dev" one.** Development commands in many ORMs generate new migrations or reset data. In production you only want to apply migrations that are already committed. - **Keep startup migrations short.** Your server doesn't listen until migrations finish. On Candor Deploy the deployment stays in *Deploying* until the new version answers, while the old version keeps serving ([troubleshooting docs](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract)). Long data backfills belong in a separate job, not in the boot path. If you ever run more than one instance of the same app, two of them may try to migrate at the same time. Most migration tools take a lock in the database to prevent this, but check yours. If it doesn't, wrap the step in a Postgres advisory lock (`pg_advisory_lock`) or the equivalent for your database. ## What is the expand/contract pattern? Expand/contract (sometimes called "parallel change") splits a breaking schema change into steps that are each backward compatible: 1. **Expand.** Add the new column, table or index. Don't remove or rename anything. Old code ignores the new parts, and new code can start using them. 2. **Migrate.** Ship code that writes to both the old and new shape and reads from the new one. Backfill existing rows. 3. **Contract.** Once no running code touches the old shape, remove it in a separate, later deploy. Each step is its own deploy. That feels slower, but each deploy is small, and at every point the code that's running agrees with the schema. ## How do you rename a column without breaking the running app? Here's the `name` → `full_name` rename done safely, in four deploys. **Deploy 1: expand.** ```sql ALTER TABLE users ADD COLUMN full_name text; ``` The old code doesn't know `full_name` exists, so it keeps working. **Deploy 2: dual-write.** The app writes both columns on every insert and update, and reads `full_name`, falling back to `name` if it's empty: ```js await db.query( "UPDATE users SET name = $1, full_name = $1 WHERE id = $2", [newName, userId] ); ``` **Deploy 3: backfill, then read only the new column.** Copy the old values over in batches so you don't lock the table for long: ```sql UPDATE users SET full_name = name WHERE full_name IS NULL AND id IN ( SELECT id FROM users WHERE full_name IS NULL LIMIT 1000 ); ``` Run it in a loop from a one-off script or a small job until no rows are left. Then switch reads to `full_name` only, and stop writing `name`. **Deploy 4: contract.** When you're confident nothing reads `name` anymore: ```sql ALTER TABLE users DROP COLUMN name; ``` If you want a `NOT NULL` constraint on `full_name`, add it here too, after the backfill. Adding it earlier would reject writes from the old code. ## Which schema changes are safe in a single deploy? As a rough guide: **Usually safe in one step** - Adding a new table. - Adding a nullable column, or one with a simple default. - Adding an index, preferably with `CREATE INDEX CONCURRENTLY` on Postgres so writes aren't blocked. **Needs expand/contract** - Renaming a column or table. - Changing a column's type. - Adding `NOT NULL` to an existing column. - Dropping a column or table the current code still reads. - Splitting or merging tables. When in doubt, ask one question: *if the previous version of my code ran against this new schema for ten minutes, would it still work?* If the answer is no, split the change. ## How do expand/contract migrations make rollbacks safer? Rolling back code doesn't roll back your schema. On Candor Deploy, a rollback rebuilds an earlier commit from source and rolls it out like any other deploy ([builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract)). Your database stays exactly as the latest migrations left it. That's another argument for expand/contract. If every migration keeps the previous version working, the previous version is always a safe place to roll back to. Treat migrations as forward-only. If a change was wrong, fix it with a new migration rather than trying to run "down" scripts in production. ## What should you do next? Pick the next schema change on your list and run it through the ten-minute question before you write the migration. Then put migrations in your start command and make sure your app gets its connection string. The [Candor Deploy databases guide](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=run-database-migrations-on-deploy-safely-expand-contract) walks through creating a database and attaching it to your app. *Written with help from our AI assistant.* --- # Shipping AI Agent Work Safely: The Human Tag and the Rollback Window (Fleet Ledger, Part 1) URL: https://candordeploy.com/blog/agent-releases-human-tag-rollback-window/ **TL;DR:** When coding agents produce most of your changes, the risky moment isn't writing the code, it's putting it in front of users. A person should make the release call, and a change should only count as finished after a watched period where undoing it takes one click. This post is our developer-side companion to Part 1 of R Software's five-part series, [The Fleet Ledger Method](https://rsoftware.net/articles/fleet-ledger-method-agentic-delivery?utm_source=candor&utm_medium=article&utm_campaign=fleet-ledger&utm_content=part-1). Their article lays out the full model. Here we zoom in on the two stages closest to your users, because that's where a hosting platform either helps you or gets in the way. ![The Fleet Ledger Method with the Promote and Watch stages highlighted: a human cuts the release, and every release carries a rollback window](/images/blog/candor-fleet-ledger-part-1-v2.png) ## What is the Fleet Ledger Method, in one paragraph? It's a delivery model for teams running several agent sessions in parallel. Work moves through seven stages: Brief, Dispatch, Cross-check, Land, Promote, Watch and Sweep, with a compliance gate before Promote. A budget rail and an approval rail run underneath everything. Each stage leaves behind one piece of evidence, and that chain of evidence (the ledger) is what lets a human approve production without having watched every keystroke. The first four stages are about producing trustworthy changes. The last three are about releasing them, and that's our focus. ## Why should a human make the release call if agents wrote the code? Because merging and releasing are different decisions. A clean review tells you the diff matches the brief. It can't tell you whether today is a good day to ship, whether a customer demo is running in an hour, or whether three other changes are already queued behind this one. In the method, **Promote** means a person approves production by cutting a version tag, and agents never promote themselves. On the approval rail, that's the top level: L3, a human production tag. In practice that looks like: - Agents may open branches and pull requests, and a fresh session reviews them. - A person merges, then marks the release with a tag such as `v1.14.0`. - The tag is a record of who said yes, and when. How the tag maps to your deploy is a choice you make. On Candor Deploy, every push to your connected branch goes live ([how it works](https://candordeploy.com/?utm_source=blog&utm_medium=organic&utm_campaign=agent-releases-human-tag-rollback-window)). So a simple, honest setup is to keep a release branch that only people push to, and cut the tag at the same commit. Agents work on feature branches; a human moves the release branch forward. The deploy follows the human decision, not the agent's. ## What makes a release "done"? Shipping isn't the finish line. In the method, **Watch** says a release includes a rollback window, and the change doesn't count as complete until the signals look right during that window. That turns a vague feeling ("seems fine?") into a short, explicit checklist you can write down before you ship: 1. **What to look at.** Error rate, memory, response traffic, and the app's own logs for the paths you changed. 2. **For how long.** Fifteen minutes for a copy change; a full business day for a billing change. Pick it up front. 3. **What triggers a rollback.** For example: errors above your normal baseline, or any new exception from the code you touched. 4. **Who decides.** Usually the same person who cut the tag. Write those four lines next to the tag and you have the "rollback point and signal note" entry the ledger asks for. ## What does a rollback window need from the platform? A rollback window is only real if rolling back is cheap. If undoing a release means rebuilding an old commit and hoping, people stretch their luck instead of reverting. Here's what Candor Deploy gives you for that window, all from [the live product page](https://candordeploy.com/?utm_source=blog&utm_medium=organic&utm_campaign=agent-releases-human-tag-rollback-window): - **One-click rollback.** Every earlier deploy has a Rollback button, so the trigger in your checklist maps to one action. - **A bad build doesn't replace a good one.** Updates roll out while the old version keeps serving, and the new version has to start and answer before the old one stops. If the new version fails to start, the previous one stays up. - **Signals you can actually read.** Live logs stream your build and your app's output, and the build log for every deploy is kept. Usage shows CPU, memory, traffic and errors right now, with history over the last hour, day or week. - **Agents can read the signals too.** If you connect your coding agent, it can call `deployment_status`, `build_logs`, `service_usage` and `service_metrics`. That's useful for drafting the signal note, but the rollback decision stays with a person. Note what's not on that list: we don't roll back automatically, and a tag doesn't trigger a deploy by itself. The human pushes, the human watches, the human decides. ## How do production signals feed the next brief? The last stage, **Sweep**, closes sessions and cleans up. It also carries what you learned forward. Whatever you saw during the Watch window (a slow endpoint, a noisy log line, a memory bump) becomes input to the next brief. Your signals feed the next round of work instead of evaporating once the window closes. Even a one-line note helps: "v1.14.0: memory up about 20% on the export job, look at batching." The next agent session starts with evidence instead of guesses. ## What's coming in this series? R Software is publishing the rest of the method over the next week or so, and we'll post a developer-focused companion for each part: - **Part 2:** writing "done" so it includes how you'll roll back. - **Part 3:** letting agents read build logs and deploy status. - **Part 4:** the human tag as the promote decision. - **Part 5:** the rollback window, live logs and metrics in depth. Read the full model in [R Software's Part 1](https://rsoftware.net/articles/fleet-ledger-method-agentic-delivery?utm_source=candor&utm_medium=article&utm_campaign=fleet-ledger&utm_content=part-1). ## Try it on your next release Pick one change an agent is working on this week. Before it ships, write the four-line Watch checklist, have a person cut the tag, and keep the rollback one click away. If you'd like a platform where that last part is built in, [deploy your repo on Candor Deploy](https://candordeploy.com/?utm_source=blog&utm_medium=organic&utm_campaign=agent-releases-human-tag-rollback-window). *Written with help from our AI assistant.* --- # Why Your App Works Locally but Fails After Deploy: The $PORT and 0.0.0.0 Fix URL: https://candordeploy.com/blog/app-works-locally-fails-after-deploy-port-fix/ If your app runs perfectly on your laptop but never answers after deploy, it's almost always listening on the wrong port or the wrong network interface. The fix is two lines: read the port from the `PORT` environment variable, and bind to `0.0.0.0` instead of `localhost`. This guide explains why both mistakes are so common, what they look like on a git-push host, and how to fix them in the languages people deploy most. ## Why does an app work locally but not after deploy? On your machine, you open a browser to `http://localhost:3000` and the app answers. Two assumptions are hiding in that URL: 1. **The port is 3000** because you (or a framework template) wrote `3000` in the code. 2. **The request comes from the same machine**, so listening only on the loopback interface (`127.0.0.1`, a.k.a. `localhost`) is enough. In production, neither is true. Your app runs inside a container, and the platform's router sits outside it. The router forwards traffic to a specific port that the platform chose, and it reaches your container over a network interface that is not loopback. If your app is listening on a different port, or only on `127.0.0.1`, the router knocks and nobody is home. Nothing in the build catches this. Compilation succeeds, dependencies install, the process starts, and your own startup log line cheerfully says "listening on port 3000". The failure only shows up when something outside the container tries to connect. ## What is the PORT environment variable? Most hosting platforms that run your code in containers use the same simple contract: they put a port number in an environment variable called `PORT`, and your app is expected to listen on it. On Candor Deploy, that contract is spelled out in the [builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=app-works-locally-fails-after-deploy-port-fix): we set `PORT` in your app's environment (it defaults to `8080`), route HTTPS traffic from your app's URL to that port, and health-check the app by opening TCP connections to it. An app that binds to some other hard-coded port builds fine and then never comes live, because it never answers the health check. The value can differ between platforms and can change, so the rule is simple: never assume the number, always read it. ## What does "binding to 0.0.0.0" actually mean? A server listens on an **address** as well as a port. The address decides which network interfaces it accepts connections on: - `127.0.0.1` / `localhost`: only connections that originate inside the same machine or container. - `0.0.0.0`: every interface, including the one the platform's router uses to reach your container. Many dev servers default to `localhost` for safety, which is exactly right on a laptop in a coffee shop and exactly wrong in a container. Inside a container, `0.0.0.0` doesn't expose anything extra to the internet; the platform's router is still the only way in. ## What does the failure look like? The symptoms are distinctive once you know them. According to the [troubleshooting guide](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=app-works-locally-fails-after-deploy-port-fix), a wrong port on Candor Deploy usually shows up one of two ways: - **The deployment sits in "Deploying" and never reaches "Live."** That's intentional: the previous version keeps serving until the new one proves it's up, so a broken deploy doesn't take down a working site. - **The app starts, fails its health check, and restarts over and over.** The runtime logs show a clean boot each time, which is what makes this one confusing. If your runtime logs show a healthy startup message with a port number that isn't the one in `PORT`, you've found it. ## How do I fix it in Node.js? Read `PORT` with a local fallback, and pass an explicit host: ```js const port = Number(process.env.PORT) || 3000; app.listen(port, "0.0.0.0", () => { console.log(`listening on ${port}`); }); ``` Watch for frameworks with their own dev and production servers. Some start scripts accept `--port` and `--hostname` (or `--host`) flags; pass `--port $PORT --hostname 0.0.0.0` in your `start` script rather than relying on defaults that were designed for local development. ## How do I fix it in Python? For a production server like Gunicorn or Uvicorn, put the bind address in the start command: ```bash gunicorn app:app --bind 0.0.0.0:$PORT uvicorn main:app --host 0.0.0.0 --port $PORT ``` Avoid shipping the framework's built-in development server (`flask run`, `manage.py runserver`) to production; besides defaulting to localhost, it isn't built for real traffic. If you must start from code: ```python import os port = int(os.environ.get("PORT", "8000")) app.run(host="0.0.0.0", port=port) ``` ## How do I fix it in Go? Go's `net/http` binds to all interfaces when you leave the host empty, so the only job is the port: ```go port := os.Getenv("PORT") if port == "" { port = "8080" } log.Fatal(http.ListenAndServe(":"+port, mux)) ``` Note that `":"+port` means "all interfaces". Writing `"localhost:"+port` brings the bug right back. ## How do I fix it in Ruby and PHP? For Rails with Puma, bind explicitly in the start command or `config/puma.rb`: ```bash bundle exec puma -b tcp://0.0.0.0:$PORT ``` For PHP, the built-in server needs both pieces as well, though for anything serious you'll want a proper web server in front of PHP-FPM: ```bash php -S 0.0.0.0:$PORT -t public ``` ## What if I'm using a Dockerfile? The same rules apply inside a container image you build yourself. Two extra traps: - `EXPOSE 3000` in a Dockerfile is documentation, not configuration. It doesn't make the platform send traffic to 3000. - Shell-form vs exec-form `CMD` matters for variable expansion. `CMD ["node", "server.js", "--port", "$PORT"]` passes the literal string `$PORT`, because exec form doesn't run a shell. Read `PORT` inside your code, or use shell form. On Candor Deploy, a Dockerfile in your repo is ignored unless you opt in, per the [quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=app-works-locally-fails-after-deploy-port-fix), which keeps a stale local-dev Dockerfile from breaking your deploy. ## Does a background worker need a port? No. A worker that pulls jobs from a queue or runs a loop doesn't serve HTTP, so it shouldn't open a port at all. On Candor Deploy, workers get no port and no URL, and they skip the port health check entirely, as the [builds and configuration docs](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=app-works-locally-fails-after-deploy-port-fix) note. If you're deploying something that never answers HTTP, deploy it as a worker rather than a web service, or its health check will never pass. ## What's a quick pre-deploy checklist? Before you push, check these five things: 1. **Search your code for a hard-coded port.** `grep -rn "3000\|5000\|8000" src/` catches most of them. 2. **Read `PORT` from the environment**, with a local fallback for development. 3. **Bind to `0.0.0.0`** (or an empty host in Go), never `localhost` or `127.0.0.1`. 4. **Use a production server** in your start command, not a framework's dev server. 5. **Test it like production locally:** `PORT=8080 npm start`, then hit `http://127.0.0.1:8080` from another terminal. If that works with a port you didn't choose, the platform's port will work too. ## Next step If your deploy is stuck right now, open the app's Logs tab and compare the port in your startup line with the `PORT` value, then walk through the [Candor Deploy troubleshooting guide](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=app-works-locally-fails-after-deploy-port-fix). It covers this failure and the other common ones, step by step. --- # Environment Variables at Build Time vs Runtime, Explained URL: https://candordeploy.com/blog/env-vars-build-time-vs-runtime/ An environment variable is read either when your app is **built** or when it **starts**, and the two behave very differently: build-time values get baked into the output, while runtime values are read fresh each time the process boots. Most "I changed the variable and nothing happened" bugs, and most accidentally public API keys, come from mixing the two up. This guide explains the difference, shows how to tell which kind a variable is, and gives a short checklist for handling both on a git-push host. ## What is the difference between build time and runtime? A deploy has two separate moments. **Build time** is when your source code is turned into something runnable: dependencies installed, TypeScript compiled, a frontend bundled, a container image produced. Anything that reads a variable during this step captures its value at that instant and writes it into the result. **Runtime** is when that result is started as a process and begins serving requests. Code that reads `process.env.DATABASE_URL`, `os.environ["SECRET_KEY"]` or `os.Getenv("PORT")` while it's running sees whatever the environment holds when the process starts. The practical consequence: a build-time value is frozen into an artifact, and only a new build changes it. A runtime value only needs a restart. ## Which variables are read at build time? The usual suspects are frontend frameworks that inline values into JavaScript bundles: - Variables with a public prefix, such as `NEXT_PUBLIC_*`, `VITE_*` or `REACT_APP_*`, are replaced with their literal values when the bundle is built. The browser never sees an environment; it sees a string that was pasted into the code. - Static site generators that fetch content or call APIs during the build, then write HTML files. - Build tooling flags like `NODE_ENV=production`, which change how dependencies are installed and how code is optimized. A quick test: if the variable is used in code that runs in the browser, or in a file that only executes during `npm run build`, it's build time. ## Which variables are read at runtime? Server code reads its configuration when it boots. Typical runtime variables: - `PORT`, the port your server must listen on - `DATABASE_URL`, `REDIS_URL` and other connection strings - API keys and signing secrets used on the server - Feature flags your server checks per request These should never be baked into an artifact. If you build the same image for staging and production, runtime configuration is what makes them different. ## Why didn't my change take effect? There are two common reasons, one for each kind. **You changed a build-time variable without rebuilding.** If `VITE_API_URL` was `https://old.example.com` when the bundle was built, the bundle contains that string. Changing the variable afterwards does nothing until the frontend is built again. **You changed a runtime variable without restarting.** Most processes read their environment once at startup. Editing the value in a dashboard doesn't reach a process that's already running. On Candor Deploy, saving the Environment tab doesn't restart anything; environment changes apply on the next deploy. You push a new commit, or use *Deploy a commit* with the same SHA, and the portal reminds you with "Redeploy to apply" when you save ([builds and configuration](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). Every deploy there is a full build from source at that commit, so a redeploy covers both cases: the app is rebuilt and then restarted with the current environment. ## Why do public frontend variables leak secrets? Because "public prefix" means exactly that. Anything named `NEXT_PUBLIC_STRIPE_SECRET` or `VITE_ADMIN_TOKEN` is written into JavaScript that every visitor downloads. Minification doesn't hide it; anyone can open the bundle and search for it. Rules that prevent this: 1. **Only put values in a public-prefixed variable that you'd be happy to print on your homepage.** Publishable keys, public API base URLs and analytics IDs are fine. Secret keys never are. 2. **Keep secrets on the server.** If the browser needs data from a secret-protected API, call your own backend route, and let the backend use the secret at runtime. 3. **Grep your build output** before a launch: search the built files for the first few characters of each real secret. If one shows up, rotate it. ## How should a server read its configuration? Read everything once at startup, validate it, and fail loudly when something is missing. A crash with a clear message on boot is far easier to debug than a request that fails an hour later. A minimal Node pattern: ```js function required(name) { const value = process.env[name]; if (!value) { console.error(`Missing required environment variable: ${name}`); process.exit(1); } return value; } const config = { port: Number(process.env.PORT ?? 8080), databaseUrl: required("DATABASE_URL"), sessionSecret: required("SESSION_SECRET"), }; ``` The same idea in Python: ```python import os, sys def required(name): value = os.environ.get(name) if not value: sys.exit(f"Missing required environment variable: {name}") return value DATABASE_URL = required("DATABASE_URL") PORT = int(os.environ.get("PORT", "8080")) ``` On Candor Deploy the platform sets `PORT` in your app's environment (defaulting to 8080) and health-checks the app on it, so reading `PORT` rather than hard-coding a number is what lets the deploy go live ([builds and configuration](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). When an app crashes on boot, the troubleshooting guide lists a missing environment variable as one of the usual suspects, and the Logs tab is where the reason shows up ([troubleshooting](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). The validation pattern above makes that log line say exactly which one. ## Where should secrets live? Not in git. A secret committed once stays in the repository history even after you delete the file, so treat any committed secret as exposed and rotate it. Better places: - **Your host's environment settings.** On Candor Deploy, values on the Environment tab are stored as a secret and never shown in logs ([builds and configuration](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). - **Generated secrets.** Some platforms can mint a random value for you so nobody ever types or stores it. A Candor Deploy `.candorfile` can set `SESSION_SECRET: { generate: hex32 }`, which creates 32 random bytes on the platform side and injects them as the value, so the secret never lives in your repository ([.candorfile reference](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). - **A local `.env` file that's in `.gitignore`**, for development only, plus a committed `.env.example` listing every variable name with a placeholder value. New teammates (and your future self) can see what's required without seeing the values. ## What about connection strings for databases? Treat them as runtime secrets, and avoid copying them by hand when the platform can wire them for you. Hand-copied URLs drift: a rotated password or a changed host leaves the app pointing at the old value. On Candor Deploy, *Attach a database* on the Environment tab writes the database's connection URI into your app as `DATABASE_URL` (`REDIS_URL` for Redis), and app-to-app addresses are injected as `_URL` variables, with any value you set yourself taking priority ([builds and configuration](https://candordeploy.com/docs/builds-and-configuration/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime), [.candorfile reference](https://candordeploy.com/docs/candorfile/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime)). As with any environment change there, redeploy to apply it. ## A pre-deploy checklist Before your next deploy, run through this list: - [ ] Every variable your app needs is listed in `.env.example`, with no real values. - [ ] No real secret is committed anywhere in the repository history. - [ ] Public-prefixed frontend variables hold only values that are safe to publish. - [ ] Server code reads `PORT` from the environment and listens on `0.0.0.0`. - [ ] Required variables are validated at startup with a clear error message. - [ ] You know which variables are baked in at build time, so you know a change to them needs a rebuild. - [ ] After changing any variable, you redeploy and check the logs for the new value taking effect. ## What's the next step? If you're setting up a new app, the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=env-vars-build-time-vs-runtime) walks through a first deploy from a repository. --- # How to Deploy a Node + Postgres App with git push: A Practical Checklist URL: https://candordeploy.com/blog/deploy-node-postgres-app-git-push-checklist/ To deploy a Node.js app with Postgres from a `git push`, your app needs to do four things: start with one predictable command, listen on the port the platform hands it, read its database URL from the environment, and run its own schema migrations on startup. Get those right and most "it works on my machine" deploy failures never happen. This checklist walks through each item in the order you'll hit them, with the small code changes that matter. The examples use Candor Deploy where a platform detail is needed, but almost every point applies to any container-based git-push host. ## Is your repo ready to be detected? A git-push platform reads your repository and works out what it is. For Node, that means a `package.json` at the root of the app with: - **A `start` script** that launches a long-running server, e.g. `"start": "node server.js"`. A script that runs and exits is not a server; the deploy will fail because nothing stays up. - **A `build` script** if you compile anything (TypeScript, a bundler). Keep it separate from `start`. - **An `engines.node` field** pinning the major Node version you test against, so the build doesn't pick a different one. - **A committed lockfile** (`package-lock.json`, `pnpm-lock.yaml` or `yarn.lock`), so the build installs exactly what you tested. On Candor Deploy, builds use [Nixpacks](https://nixpacks.com), which detects Node, Python, Go, Ruby, PHP and static sites. If it finds your app but can't tell how to start it, the deploy screen asks for a start command instead of failing later ([quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist)). A `Dockerfile` in the repo is ignored unless you opt in, so a stale local-dev Dockerfile won't break the build. ## Does your app listen on $PORT? This is the most common deploy failure, by a wide margin. Platforms route traffic to a port they choose and pass it to you in the `PORT` environment variable. Hard-code 3000 and the platform can't reach you. ```js const port = process.env.PORT || 3000; app.listen(port, '0.0.0.0', () => { console.log(`listening on ${port}`); }); ``` Two details matter: - **Read `PORT` from the environment**, with a local fallback for development. - **Bind to `0.0.0.0`**, not `localhost` or `127.0.0.1`. Inside a container, localhost only accepts connections from the container itself. On Candor Deploy, `PORT` defaults to 8080 and the platform health-checks your app by connecting to that port. An app that doesn't listen there sits in "deploying" and never goes live, and the build log tells you why ([troubleshooting](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist)). ## Where does the database URL come from? Never commit a connection string. Read it from `DATABASE_URL`: ```js import pg from 'pg'; const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL }); ``` Checklist for the database side: - **Create the database before (or alongside) the app.** On Candor Deploy that's **+ Database** on the project card, choosing Postgres. - **Attach it rather than copy-pasting.** The app's **Environment** tab has **Attach a database**, which writes the connection URI into `DATABASE_URL` for you ([databases docs](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist)). - **Redeploy after any env change.** Environment values apply on the *next* deploy, not to the process already running. - **Give a new database a moment.** A freshly created Postgres database generates its credentials a few moments after creation. An app deployed in the same minute can beat it; redeploy once the database's Connect tab shows a URI. - **Don't expect to reach it from your laptop.** Databases on Candor Deploy are private to your project's services and have no public hostname. That's intentional. Talk to the data through your app. If you use an ORM, check its driver expectations. Most Node Postgres drivers accept `postgresql://` URIs as-is. ## Who runs the migrations? Your app does. Many platforms have no separate release step, so the simplest reliable pattern is to migrate on startup, before the server starts listening: ```json "scripts": { "build": "tsc", "migrate": "node-pg-migrate up", "start": "npm run migrate && node dist/server.js" } ``` Swap in your tool of choice (Prisma `migrate deploy`, Knex `migrate:latest`, Drizzle, plain SQL files). Guidelines that save pain: - **Make migrations idempotent and forward-only.** A restart re-runs the start command, so "already applied" must be a no-op. - **Separate destructive changes.** Add a column in one deploy, backfill, then drop the old one in a later deploy. Your previous release may still be serving while the new one starts. - **Fail loudly.** If a migration errors, exit non-zero so the deploy fails and you see it in the log, rather than starting a half-migrated app. ## Are all your environment variables set? Make a list of every `process.env.X` your code reads and check each one exists in the platform's environment settings before the first deploy. A quick way to find them: ```bash grep -rhoE "process\.env\.[A-Z0-9_]+" src | sort -u ``` Then fail fast at boot if a required one is missing: ```js for (const key of ['DATABASE_URL', 'SESSION_SECRET']) { if (!process.env[key]) throw new Error(`Missing env var ${key}`); } ``` A crash with a clear message on line one of the log beats a 500 error twenty minutes later. On Candor Deploy, variables go in the app's **Environment** tab, one `KEY=value` per line, and they're available during the build as well as at runtime, which matters for frontend bundles that bake values in. ## Does the build stay inside the time limit? Builds don't run forever. On Candor Deploy a build has 15 minutes to finish ([quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist)). If you're close: - Keep dev-only tooling in `devDependencies`. - Don't run your full test suite inside the build; run it in CI before the push. - Avoid downloading large assets at build time that could be fetched once and committed or served elsewhere. ## Can you see what happened? Before you need them, know where your two logs live: - **Build log**: why a build failed (missing dependency, compile error, wrong Node version). - **Runtime log**: what your app printed after it started (crashes, connection errors, your own `console.log`). On Candor Deploy, clicking a deployment in the **Deployments** tab expands its build log, and the **Logs** tab streams runtime output. Log something useful at startup: the port you bound, the Node version, and whether migrations ran. ## Do you have a way back? Every deploy should be reversible in one step. On Candor Deploy, each previous deployment in the history has a **Rollback** button that redeploys that exact commit, and **Deploy a commit** rebuilds any commit by SHA ([quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist)). Combined with forward-only migrations, that means a bad release is a click away from undone. Your schema stays compatible because you didn't drop anything in the same deploy. ## The checklist, in one place 1. `package.json` has `start` (long-running), `build` (if needed), `engines.node`, and a committed lockfile. 2. Server reads `process.env.PORT` and binds `0.0.0.0`. 3. Database URL comes from `DATABASE_URL`, never from the repo. 4. Database created and attached; app redeployed after. 5. Migrations run on start, are idempotent, and fail loudly. 6. Every `process.env` key is set; missing ones crash at boot with a clear message. 7. Build fits inside the time limit; tests run before the push. 8. You know where the build and runtime logs are. 9. You know how to roll back. ## Try it on a real app If you want to run through this end to end, the [Candor Deploy quickstart](https://candordeploy.com/docs/deploy-quickstart/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist) goes from a new account to a live HTTPS URL, and [Databases on Candor Deploy](https://candordeploy.com/docs/deploy-databases/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist) covers the Postgres side in detail. If something in your deploy doesn't match this checklist, the [troubleshooting guide](https://candordeploy.com/docs/deploy-troubleshooting/?utm_source=blog&utm_medium=organic&utm_campaign=deploy-node-postgres-app-git-push-checklist) is the next stop. --- # We Moved Our Production App Off Vercel. What Broke. URL: https://candordeploy.com/blog/we-moved-our-app-off-vercel/ *Updated Oct 18, 2026: corrected where Candor runs, what we promise at renewal, how deploy failures are worded, and preview deployments, which now exist; Candor Deploy is no longer in beta.* Before we ask anyone to move a production app onto Candor Deploy, we figured we should do it ourselves. So we took codewright — a real application with a React frontend, a FastAPI backend, Postgres, Redis, and paying-attention users — off Vercel and onto our own platform. It's serving at its own domain right now. It did not go smoothly. That's the useful part, so here's the whole story: what broke, what we built because of it, and what we'd tell you before you try the same move. ## Why leave Vercel at all? Credit first: Vercel is genuinely excellent. The deploy experience is the best in the industry, and most of what we built this month exists because Vercel set the bar for what "it just works" should mean. The reasons to move were about model, not quality. Vercel's pricing is usage-based — bandwidth, function invocations, analytics events are metered, and a traffic spike shows up on your bill. Candor Deploy is flat-rate, because that's the whole premise of this company. And we're a hosting company: our apps should run on the platform we sell, or we have no business selling it. There's also an architectural difference that matters for the rest of this story. Vercel runs your app as serverless functions. Candor Deploy runs containers on servers we rent from OVHcloud and run ourselves. Containers give you a real, always-on process — no cold starts, workers and databases next to your app — but they also surface problems serverless quietly absorbs. We hit every one of them. ## What broke, honestly **The deploy hung forever, and our platform said nothing.** The backend's entrypoint was written for Vercel, which discovers your app object itself. Run that same code in a container and it starts, does nothing, and exits — and Kubernetes can't tell "exited immediately" from "still starting." Our portal showed "deploying" indefinitely with no error. That was our bug, not the app's. A platform that can't tell you why a deploy is stuck isn't done. **The frontend couldn't talk to the backend.** On Vercel, both halves served from one domain — the frontend at `/`, the API at `/server`. Naive container platforms (ours included, at the time) give every service its own domain, which means CORS configuration, a public API URL baked into the frontend at build time, and a class of "invalid credentials" bugs that are actually routing bugs. We hit exactly that. **Build-time environment variables didn't exist.** Frontend frameworks bake `NEXT_PUBLIC_*`-style variables into the bundle when the app is built. Our platform only injected variables at runtime — so the setting existed in the portal, and did nothing. The kind of gap you only find by shipping a real app. ## What we built because of it Each of those became a platform feature, not a workaround for our app: - **Deploys fail honestly now.** A container that exits or crashes fails the deploy within seconds with the actual reason — "built successfully but the container exited immediately … Set a Start command," or the exit code and the last log lines. An app that never becomes ready fails with "never became ready in time … it must bind $PORT" instead of spinning forever. No silent hangs, and no guessing on your behalf: if we can't determine how to start your app, we say so and show you the one field that fixes it. - **One origin, path-routed.** A project can serve all its services under a single domain — frontend at `/`, API at `/server`, prefix stripped before it reaches your code. Same-origin means no CORS, no baked-in API URLs, and codewright's browser code ran unmodified. - **Environment variables reach the build.** What you set in the portal is available when your bundle is built, not just when it runs. - **Your domain points at the project, not a service.** Add `yourapp.com`, set the one DNS record we show you, and the certificate issues itself. The whole app — frontend, API, everything — serves there over HTTPS. ![Terminal log of two deploys on Candor Deploy. The first fails out loud: build succeeds in 41 seconds, then "deploy failed — the container exited immediately (exit 0): it isn't starting a long-running server," followed by the fix in green: "Set a Start command, e.g. uvicorn main:app --host 0.0.0.0 --port $PORT." The second deploy builds and goes live at https://codewright.app, with / routed to the frontend and /server to the API.](/blog-assets/deploy-fails-out-loud.svg) The end state for codewright: one domain, one DNS record, one flat monthly price, and a deploy pipeline that tells the truth when something's wrong. ## What we're not claiming This migration was our own app — that's one production data point, deliberately ours before it's ever yours. Preview deployments have landed since: every branch push and pull request gets its own preview address, separate from your live app and never on your custom domains, with your plan setting how many can run at once. Some honest gaps against Vercel today: no global edge network — your app runs in containers in one place, close to your database, which is the right shape for an app with a backend and the wrong shape for a static site that needs to be 20ms from everyone. And a container platform will always ask slightly more of you than serverless does — there's a real process, and occasionally you'll need to tell us how to start it. What you get in exchange is a bill that doesn't move when your traffic does, an app that runs the same way at 2am as in the demo, and a platform that fails out loud. If that trade sounds right for something you're running, [Candor Deploy](/) is open to everyone — and if you're coming from Vercel specifically, we've been through the exact move and will help with it. That's not a metaphor; it's what we did. ## Policies --- # About Candor Deploy URL: https://candordeploy.com/about/ Candor Deploy is run by **R Software & Consulting LLC** of Jacksonville, Florida — a small, founder-run software company. It was started by an engineer, Phillip Roberts, who got tired of watching the same tricks define the platforms developers actually ship on: 1. **The surprise bill.** Cheap or free to start, then egress overages, build-minute meters, and per-seat fees turn a $20 plan into a $200 invoice you didn't see coming. 2. **Lock-in dressed up as magic.** Proprietary build steps and config that only run on one platform, so the day you want to leave, you're rewriting instead of moving. 3. **Support built to deflect.** Tiered reps reading scripts, whose actual job is to close tickets, not fix problems. None of these are engineering problems. They're choices. So Candor Deploy is the same set of choices, made the other way: - **Fixed monthly plans with published limits.** Each plan says how many projects you can run and how much memory and CPU each one gets. Renewal prices may change with at least 30 days’ notice before renewal, as described in [section 3 of our Terms](/terms/#3-fees-billing-and-renewals). - **No lock-in.** You push a normal git repo. We build it from standard framework detection, or with the plain Dockerfile or compose file you already have. Nothing about your app is Candor-shaped, so the day you want to take it somewhere else, you just do. - **[Candid Support](/support-standard/):** the person who answers your ticket has production access and the authority to fix the problem, with published response-time targets. - **A public status page** ([status.candorhost.com](https://status.candorhost.com)) that reports the same monitoring we look at — not a marketing widget. ## Thirty years of running other people's software Phil started hosting websites thirty years ago in Youngstown, Ohio — when getting a site online meant racking the machine yourself and answering the phone when it went down. That part hasn't really changed; it's still the job, and it's still done that way here. In the years between, he worked in software development for all four of the major technology consulting firms, and has held most of the seats this industry has to offer: developer, system administrator, DevOps engineer, and SRE, as well as Director, Principal, and CTO at firms large and small. Candor Deploy is what that experience distills down to. Three decades of watching systems fail — and being the one accountable when they did — is why the pricing is flat, the build is something you can run yourself, the status page is public, and the person answering your ticket can actually log into the server. None of that is novel. It's just what you build when you've been on call for thirty years and know exactly which corners get cut. ## How we operate We're deliberately small. The people who build the platform are the people who answer support and carry the pager — there is no support floor reading from a script, and no sales team paid to upsell you inside a ticket. If you're coming from somewhere else, [get in touch](/contact/) and we'll talk you through the move. Candor Deploy runs on servers we rent and run ourselves. Every company involved is listed on the [subprocessors](/subprocessors/) page. There are no usage charges on top of the plan price. ## The name "Candor" means frankness — saying the true thing plainly. It's the standard every page on this site is held to, including the uncomfortable ones: the [SLA math](/sla/), the [refund policy](/refund/), what analytics we run ([all of it, listed](/analytics-transparency/)), and every third party that ever touches your data ([subprocessors](/subprocessors/)). If you find a page on this site where we've slipped into marketing-speak instead, [tell us](/contact/). We mean that. --- # Abuse Reporting Policy URL: https://candordeploy.com/abuse/ **Last updated: July 9, 2026** If you believe a Candor Host customer is misusing our infrastructure, this page tells you how to report it and what we do about it. ## How to report Email [abuse@candorhost.com](mailto:abuse@candorhost.com). This is a monitored mailbox reviewed during business hours (US Eastern time), and continuously for reports flagged as urgent. ## What to include To help us act quickly, include as much of the following as you can: - The URL, IP address, or domain of the alleged abuse. - The type of abuse (spam, phishing, malware, DDoS source, network scanning, harassment, illegal content, other). - Timestamp of the observed behavior, with timezone. - Evidence — full email headers for spam, screenshots for content, sample requests or logs for network abuse. - Your name and contact information (optional but helpful for follow-up). - Whether you consent to your contact information being shared with the customer if we forward your report (default: no). Anonymous reports are accepted but limit our ability to provide updates. ## What we do NOT handle at this address - **Copyright complaints** — use our [DMCA Copyright Policy](/dmca/) and email [dmca@candorhost.com](mailto:dmca@candorhost.com). - **Trademark complaints** — email [legal@candorhost.com](mailto:legal@candorhost.com) with a clear description of the mark, its registration status, and how the alleged infringement conflicts with your rights. - **Content disputes not covered by our AUP** — general disagreements about content are not usually actionable; consider contacting the site owner directly. - **Government or law enforcement legal process** — send subpoenas, warrants, court orders, and preservation requests to [legal@candorhost.com](mailto:legal@candorhost.com). - **Security vulnerabilities in Candor Host infrastructure** — see our [Vulnerability Disclosure Policy](/security/) and email [security@candorhost.com](mailto:security@candorhost.com). ## Response times - **CSAM, imminent physical harm, or ongoing active attack:** immediate action, typically within 1 hour. - **Active phishing or malware distribution:** action within 4 hours during business hours. - **Spam or blocklist reports:** investigation within 1 business day. - **General AUP violations:** investigation within 3 business days. Response times are targets, not guarantees. Complex reports may take longer to investigate properly. ## What happens after a report 1. We acknowledge receipt (unless the report is anonymous with no return address). 2. We investigate, which may include reviewing customer content, logs, and account history. 3. Based on our [Acceptable Use Policy](/aup/), we may warn the customer, remove content, suspend the account, or terminate the account. 4. Where legally permitted and where you consented, we send you an outcome summary. We do not typically share the specific enforcement action taken. For content-based reports, we generally give the customer an opportunity to respond unless doing so would frustrate the purpose of the removal (for example, ongoing phishing attacks). ## Repeat abuse Customers subject to repeated valid abuse reports are terminated, per our [AUP](/aup/) and [Terms of Service](/terms/). ## Retaliation We do not tolerate retaliation against reporters. Any customer who attempts to identify, contact, or harass a reporter forfeits their account. ## Good-faith reports We rely on reports from the community to keep Candor Host clean. Reports made in good faith help protect other customers and the broader internet. Thank you. Please note: knowingly submitting false abuse reports may violate our AUP if the report comes from a Candor Host customer, and may expose you to legal liability if made with malicious intent. ## Public transparency We do not currently publish a transparency report. As we scale, we intend to publish annual figures on total abuse reports received by category, enforcement actions taken, and government requests received. --- # Acceptable Use Policy URL: https://candordeploy.com/aup/ **Last updated: July 9, 2026** This Acceptable Use Policy ("AUP") governs how you may use the hosting services provided by R Software & Consulting LLC, doing business as Candor Host. It is incorporated into our [Terms of Service](/terms/) by reference. Violation of this AUP is grounds for suspension or termination of your account. ## The short version Do not host anything illegal, malicious, deceptive, or abusive. Do not send spam. Do not consume disproportionate resources. Do not use our services to harm other people or infrastructure. If something you're doing might qualify, ask us first. ## Prohibited content and activities You may not use Candor Host to host, distribute, transmit, or facilitate any of the following: ### Illegal content - Child sexual abuse material (CSAM). We report suspected CSAM to the National Center for Missing & Exploited Children (NCMEC) as required by 18 U.S.C. § 2258A. Accounts hosting CSAM are terminated immediately, preserved for law enforcement, and reported. - Content that violates U.S. federal or Florida state law, or the law of any jurisdiction where you or your visitors are located. - Content in violation of export controls or sanctions (OFAC). - Content that promotes or facilitates human trafficking, sexual exploitation, or the sexual solicitation of a minor. ### Malicious content - Malware, ransomware, viruses, trojans, keyloggers, or other malicious code. - Phishing pages, credential harvesters, or deceptive login pages impersonating any third party. - Command-and-control servers for botnets or malware. - Cryptocurrency drainer scripts or wallet-drainer smart contracts. - Content intended to circumvent access controls, DRM, or paywalls. ### Deceptive or fraudulent content - Fraudulent e-commerce, financial scams, "get rich quick" schemes. - Fake pharmaceutical, medical, or health product sales. - Fake ID, fake document, or fake credential services. - Deepfake content depicting real people without their consent, particularly in a sexual or defamatory context. - Impersonation of any brand, government agency, or individual. ### Harassment, hate, and violence - Hate speech targeting individuals or groups based on race, ethnicity, national origin, religion, gender, sexual orientation, disability, age, or veteran status. - Content advocating violence against people or groups. - Doxxing — publishing private information about individuals without consent. - Targeted harassment campaigns. - Content promoting or glorifying terrorism, mass violence, or self-harm. ### Adult content Adult content directed at consenting adults is not per se prohibited but requires prior written approval from us and additional compliance measures including age verification, geo-restrictions where required, and confirmation that all performers are 18+ with documented 2257 records. Contact [legal@candorhost.com](mailto:legal@candorhost.com) before hosting adult content. ### Spam and unsolicited communications - Unsolicited bulk email (UBE) or unsolicited commercial email (UCE). - Sending email that violates the CAN-SPAM Act, CASL (Canada), GDPR/PECR (EU/UK), or any similar law. - Operating "list broker" services or selling email lists. - SMS spam, robocalls, or automated telemarketing. See our [Anti-Spam Policy](/anti-spam/) for details. ### Network abuse - Denial-of-service or distributed-denial-of-service attacks (DoS/DDoS) against any target. - Port scanning, vulnerability scanning, or penetration testing against systems you do not own or have explicit written authorization to test. - Operating open proxies, open relays, or Tor exit nodes. - Using our infrastructure to intentionally circumvent geographic restrictions in a way that violates the target service's terms. ### Resource abuse - Cryptocurrency mining of any kind. - Sustained CPU use that materially degrades service for other tenants on shared infrastructure. - Deliberate use of disk I/O, database connections, or memory patterns designed to exhaust the platform. - Storing content unrelated to the operation of your website — for example, using your hosting account as a general-purpose file locker or backup destination. - High-frequency automated scraping or crawling that consumes disproportionate bandwidth. ### Third-party rights violations - Infringing on any third party's copyright, trademark, patent, or trade secret. See our [DMCA Copyright Policy](/dmca/). - Publishing content that constitutes defamation, invasion of privacy, or publicity-right violations. - Distributing content in breach of a confidentiality or non-disclosure agreement. ## Rate limits and shared-resource fairness Even on plans with published limits, we expect fair use of shared components (mail relays, DNS, CDN in front where used). Bursts of unusual traffic that materially impact other tenants — even if within your CPU and memory quotas — may result in throttling or a request that you upgrade to a plan that better fits your traffic pattern. We will always try to talk to you first. ## Enforcement We may respond to AUP violations with any of the following, at our discretion: 1. **Warning**: for first offenses that appear inadvertent, we typically warn you and ask you to correct the issue. 2. **Content removal**: we may remove or disable access to specific content that violates this AUP. 3. **Rate limiting or throttling**: for resource-abuse issues. 4. **Suspension**: temporary suspension of your account pending resolution. 5. **Termination**: permanent termination of your account for serious or repeated violations. 6. **Referral to law enforcement**: for content or conduct that is criminal. We reserve the right to skip earlier steps for violations we consider serious. Termination decisions consider the nature of the violation, the customer's history, and the risk to our infrastructure and other customers. ## Reporting AUP violations If you believe a Candor Host customer is violating this AUP, report it to [abuse@candorhost.com](mailto:abuse@candorhost.com). See our [Abuse Reporting Policy](/abuse/) for what to include in a report and what happens after we receive one. ## Changes We may update this AUP from time to time. Material changes will be communicated to customers by email or through the client portal at least 30 days before taking effect. ## Contact Questions about what is or is not allowed? Email [legal@candorhost.com](mailto:legal@candorhost.com) before you host something, not after. --- # Analytics Transparency URL: https://candordeploy.com/analytics-transparency/ **Last updated: October 7, 2026** Almost every hosting company promises they respect your privacy. Very few tell you what their analytics actually do. This page tells you, for candordeploy.com. ## Short version We run analytics on hardware we own. There is no Google Analytics here, no advertising pixel, no tag manager. You can check that in about ten seconds: open your browser's dev tools, go to the Network tab, and reload this page. Apart from the site itself, you'll see requests to `analytics.candorhost.com` (our analytics server) and `chat.candorhost.app` (our chat widget, served by the same Candor Deploy API that runs the platform). Both are ours. Two things collect data about your visit, and the rest of this page describes each one exactly: a cookie-free pageview counter called Umami, and a session recorder that captures how you navigate a sample of visits but never what you type. One more party is involved, and we'd rather say so than leave it out: **Cloudflare**. Visits to `candordeploy.com` — the address without `www` — pass through Cloudflare's network, which handles the secure connection and protects the site from attacks. That means Cloudflare sees each request to that address, including your IP address, the same way any network carrying your traffic does. Cloudflare is listed on our [subprocessors page](/subprocessors/). Visits to `www.candordeploy.com` come straight to our own servers. ## Server logs: we don't keep per-request ones Many sites keep a log line for every request, with your IP address in it. For candordeploy.com, today, we don't: neither the web server that serves this site nor the router in front of it writes an access log. If that changes, this section will say so first. What Cloudflare records about requests that pass through its network is governed by its own policies, linked from our [subprocessors page](/subprocessors/). ## Umami, for pageview counts and referrers We run [Umami](https://umami.is/), an open-source, cookie-free web analytics platform, on our own server at `analytics.candorhost.com`. When you load a page here, a small JavaScript file reports a single pageview event to it. You can read exactly what Umami collects — the actual source, not a marketing claim — at [github.com/umami-software/umami](https://github.com/umami-software/umami). **What it sees:** - The URL of the page you visited. - The referring URL you came from. - Your screen size. - Your browser and OS. - Your approximate country, derived from your IP address. - The time of the visit. - Any UTM parameters in the URL, so we can tell which of our own social posts, emails, or campaigns worked. **What it does not see:** - No cookies of any kind. - No cross-site tracking. Umami has no ability to link a visit here to your activity on any other site. - No fingerprinting. - Your IP address is never stored. Umami uses it, along with your user agent, as an input to a one-way hash that groups the pages of a single visit together. The hash cannot be turned back into an IP address, and we never see one. **One honest caveat about the word "anonymous."** That hash means the pages you view in a single visit are linked to each other. It is not a per-pageview blank slate, and we're not going to claim it is. What it is not is an identifier that persists across visits, follows you to other sites, or tells us who you are. **How long we keep it:** 12 months, rolling. Older pageview data is deleted automatically, every night. Umami's default is to keep data forever; we've chosen not to. **Where the data lives:** on our own server, in a database we run. It does not leave our infrastructure, it is not sold, and it is not shared with any third party. Only Candor staff can access the dashboard. We are not going to use ad-blocker evasion. Umami can be configured to rename its script and endpoint to slip past blocklists. We've deliberately left the defaults in place. If you've installed a blocker, it will block us, and we'll simply have less data. That seems like the correct outcome. ## Campaign links: one value in your browser, for this tab only If you arrive from one of our posts or campaigns, the link carries `utm_` parameters. We keep those in your browser's `sessionStorage`, under the name `ch_attr`, and add them to the link if you go on to sign up at app.candordeploy.com or to our billing portal. If you do create an account, we record that campaign on it — once, when the account is created. That's how we tell which campaigns bring us customers rather than just clicks. It's not a cookie and not `localStorage`. It belongs to that one browser tab, and your browser discards it when you close the tab. It can't follow you between visits or to another site. Our [cookie policy](/cookies/) has the details. ## Three conversion counts, sent by our own servers To know which campaigns lead to real customers, the Candor Deploy platform itself — not your browser — reports three milestones to the same Umami server: - **an account was created** (after its email address was confirmed), - **an organization's first app went live**, and - **a payment was collected** — with its amount, and whether it was that organization's first. Free credit, trials and card checks are never reported as payments. Each report carries an event name, a random ID that stands for the account or organization, the campaign the account signed up from (the `utm_` values above, if there were any), and a random ID for the event itself. **It never carries your name, your email address, your account or billing IDs, or anything about your card.** The random IDs are generated by us and mean nothing outside our own database. The dashboard at app.candordeploy.com still loads no analytics or recording code; these reports go server to server. Accounts belonging to Candor staff, and test, demo and review accounts, are left out. ## Session replay and heatmaps, on our own servers This is the part most companies don't tell you about, so we're going to be exact. On a **sample of visits — about 15%** — we record **how** visitors move through the site: mouse movement, scrolling, clicks, and the order pages were visited in. We use it for two things: finding where the site is broken, and learning which parts of a page people actually read. It runs on the same server as the rest of our analytics, using Umami's built-in recorder. **What is not recorded: anything you type.** Every text field on the site is masked in recordings. The contact form — this site's only form — goes further: it is excluded from recording at the element level. Not masked, not starred out: excluded, so there is nothing stored to reveal. We didn't take the setting's word for it. On September 30, 2026 we filled in our own contact form with marked test values on a recorded visit, then searched everything the recorder sent. The page's own words were in there — which is how we know the recording was working at all — and **not one character** of what we had typed. We'd rather verify a privacy claim than publish one and hope. **Where it never runs:** the Candor Deploy dashboard at app.candordeploy.com. Your account, projects, and billing are managed there, and it carries no analytics or recording code. **Where the data goes:** nowhere. Recordings are written to a database on a server we own, and they are never sent to a third party, never sold, and never used for advertising. **How long we keep it:** 30 days, then deleted automatically. That's much shorter than the 12 months we keep pageview counts, because a recording is a far more detailed thing to hold onto. Our line is this: recording how someone navigates a page so we can fix what's broken is reasonable. Recording what they type is not. If you think we've drawn that line in the wrong place, tell us — [legal@candorhost.com](mailto:legal@candorhost.com). ## What we do not use - **Google Analytics.** Uses cookies, tracks visitors across sites, requires a cookie banner in most jurisdictions. Blocked by our privacy policy. - **Facebook Pixel, X Pixel, LinkedIn Insight Tag.** Retargeting infrastructure. We don't run retargeted ads and we have no reason to install them. Our campaigns link here with plain UTM parameters, and that's all we learn from them. - **Hotjar, FullStory, Mouseflow, or any third-party session recording service.** The objection is not recording as such — we do record navigation, as described above. The objection is shipping it to someone else. These services send your behaviour to a company you have no relationship with, on infrastructure you can't inspect. Ours stays on our own hardware. - **Any third-party heat-mapping, A/B testing, or personalization tool** that requires cookies or persistent identifiers. ## Do Not Track and Global Privacy Control On this site, we do not track visitors across third-party sites, so DNT and GPC signals do not change the pageview counts we collect. We follow the same practices for every visitor. They do change one thing: if your browser sends either signal when you sign in to Candor Deploy, we record that on your account and never send any of the three conversion reports above for you or for organizations you create. Your account still counts in our own records — we need those to run the business — but nothing about it reaches our analytics. ## How to check our work Open your browser's dev tools, go to the Network tab, and reload this page. You should see: - A request to `analytics.candorhost.com/script.js` — the pageview tracker. - A request to `analytics.candorhost.com/api/send` — your pageview. Click it and read the payload; it shows exactly what we recorded, and it matches the list above. - A request to `analytics.candorhost.com/recorder.js`. If your visit is one of the sampled ones, you'll also see one or more requests to `/api/record` — the session recorder. - A request to `chat.candorhost.app/v1/support/widget.js` — the chat widget in the corner, loaded from our own API. It talks to that API only once you open it and start a conversation. Then check the Application tab: no cookies from us, and under Session Storage, `ch_attr` only if you arrived from a campaign link. If you've started a chat, Local Storage holds `candor.support.session.v1` — the token that lets you pick that conversation back up after a reload. It reaches only that one conversation, and clearing it simply starts a fresh one next time. On `candordeploy.com` without `www`, Cloudflare's security features can set a short-lived cookie of their own (named `__cf_bm`) if they suspect automated traffic; ordinary visits normally don't get one. If you want to test the form claim yourself, type something into our contact form on a sampled visit, then watch what `/api/record` sends. What you typed will not be in it. We think you should be able to do this on any hosting company's website. Not many make it easy. ## Contact Questions about what we track? Email [legal@candorhost.com](mailto:legal@candorhost.com). --- # Cancellation Policy URL: https://candordeploy.com/cancellation/ **Last updated: July 9, 2026** You can cancel your Candor Host account at any time. This page explains how, what happens to your data, and how to export it before you go. ## How to cancel 1. Log in to the Candor Deploy portal at [app.candordeploy.com](https://app.candordeploy.com/). 2. Navigate to Services → Cancel Service. 3. Choose "Immediate" or "End of billing period." 4. Confirm. You can also email [hello@candorhost.com](mailto:hello@candorhost.com) from the email address on your account and we will process the cancellation. ## What happens to your service - **End-of-billing-period cancellation** (default): service continues through the end of your currently paid billing period. You retain full access until that date. - **Immediate cancellation**: service is terminated on the date you request. Prepaid fees for the current period are not refunded except as described in our [Refund Policy](/refund/). ## What happens to your data We treat your data on cancellation as follows: ### The 30-day grace period For 30 days after your service ends, we retain your hosted content — files, databases, email — in a suspended state. During this window: - You can reactivate the account by contacting support. Reactivation restores full access with no data loss. - You can export your data via SFTP or a downloadable archive at no cost. - No new traffic is served to the public domain associated with your site. ### Data export You can request a full account export at any time before cancellation, or during the 30-day grace period. Exports include: - All website files (`wp-content`, uploads, custom code). - All databases (SQL dump). - All email mailboxes (mbox or IMAP-compatible export). - DNS zone files. We deliver exports within 3 business days of request, as a downloadable archive from your client portal. There is no charge for exports. ### Deletion after 30 days After the 30-day grace period, we permanently delete your hosted content from our production systems. Deletion includes: - All website files. - All databases. - All email content and account configurations. - All DNS records under your management. Rolling backups that include your data are overwritten on the backup server's normal 30-day retention cycle. After a further 30 days (total 60 days from cancellation), no copy of your hosted content remains on Candor Host systems. You can request expedited deletion at any point by emailing [legal@candorhost.com](mailto:legal@candorhost.com). Expedited deletion is completed within 5 business days. ## What we retain after deletion For legitimate business and legal purposes, we retain: - **Account and billing records** for seven years after cancellation, for tax and accounting compliance. - **DMCA notice log** for the duration required by law. - **Support communications** for three years. - **Security and abuse investigation records** for the duration necessary to investigate and resolve. These records are stored separately from active production data and are not accessible in the ordinary course of business. ## Domains If you registered a domain through Candor Host, the domain remains registered under your name for its registered term. You can transfer it to another registrar at any time; the transfer is not blocked by your service cancellation. Contact [hello@candorhost.com](mailto:hello@candorhost.com) for the authorization code and any unlock steps required. ## Reactivation If you cancel and then decide to come back, contact us within 30 days and we will reactivate your account with no data loss. After 30 days, you can open a new account but your previous data is no longer available. ## If we terminate your account If we terminate your account for a violation of our [Acceptable Use Policy](/aup/) or [Terms of Service](/terms/): - We will notify you of the termination and the reason, unless prohibited by law. - We will typically provide the same 30-day grace period for data export, except for terminations related to unlawful content, active threats to our infrastructure, or where a shorter timeline is required by law or court order. - Terminations related to CSAM or content threatening imminent harm are effective immediately and content is preserved for law enforcement rather than exported. ## Contact Questions? [hello@candorhost.com](mailto:hello@candorhost.com). --- # Cookie Policy URL: https://candordeploy.com/cookies/ **Last updated: September 30, 2026** We keep this short because our cookie usage is minimal. ## What we use Candor Host uses only cookies necessary for the website and client portal to function. We do not use advertising cookies. We do not use tracking cookies. We do not use social media pixels. We do not sell or share any information collected via cookies. ## The specific cookies ### On candorhost.com (marketing site) We do not set any cookies on our marketing site under normal browsing. Some pages may set a strictly-necessary session cookie if you interact with a form. ### On app.candordeploy.com (customer portal) | Cookie | Purpose | Duration | |---|---|---| | Session ID | Keeps you signed in during your visit. | Session (deleted when you close your browser). | | CSRF token | Protects against cross-site request forgery attacks. | Session. | | Language preference | Remembers your interface language. | 1 year, if you set one. | All portal cookies are essential to the operation of the service. Without them, you would not be able to log in. ### On status.candorhost.com Our status page is operated by a third-party status monitoring service. It may set essential session cookies. It does not use analytics or tracking cookies. ## Analytics We run analytics on candorhost.com, and none of it uses cookies. Umami counts pageviews and referrers. It sets no cookies and no persistent identifiers, and it runs on our own server rather than a third party's. A session recorder captures how visitors navigate the page — scrolling, clicks, where they move — and every form on the site is excluded from it, so nothing you type is recorded. Neither tracks you across sites. Our [Analytics Transparency page](/analytics-transparency/) describes exactly what each one collects, how long we keep it, and how to verify all of it in your browser's dev tools. ## Campaign parameters we store in your browser If you arrive here from one of our ads, the link carries campaign parameters — `utm_source`, `utm_medium`, `utm_campaign`, `utm_content`, `utm_term`. We keep those in your browser's `sessionStorage` while you look around, and add them to the link if you go on to sign up at app.candordeploy.com or to our billing portal. That is how we tell which campaigns bring us customers rather than just clicks. Being exact about it: - It is **only** those five parameters, and only ones we put in our own advertising links. We do not read or store `gclid`, `fbclid`, or anything else a third party attaches. - It is `sessionStorage`, not a cookie and not `localStorage`. It is scoped to that one browser tab, and the browser discards it when you close it. It cannot follow you between visits, and it cannot follow you to another site. - It contains no identifier for you. There is nothing in it that distinguishes you from anyone else who clicked the same ad. - Nothing is stored at all if you arrive from a search engine, a link, or by typing the address. - **If you go on to create an account**, the portal keeps those same values in a cookie named `candor_portal_attribution` for the length of the sign-up (at most an hour; it is sent only to the portal's sign-in step, not readable by scripts, and deleted as soon as you're signed in), and we record the campaign on the new account. That is the one point where a campaign is connected to a person: to know which campaign brought each customer, we have to write it down against the customer. It is recorded once, when the account is created, and never updated afterwards. You can see exactly what is there: open your browser's dev tools, go to Application → Session Storage, and look for `ch_attr`. If we ever add a cookie-based analytics tool, we will update this policy and add an opt-in mechanism. ## Do Not Track and Global Privacy Control We honor Do Not Track and Global Privacy Control signals the same way we treat all visitors — with no tracking. Sending these signals does not change our behavior because we already do not track you. ## Managing cookies You can control cookies through your browser settings. Blocking all cookies will prevent you from logging into your client portal. Blocking only third-party cookies has no effect on our first-party site. Instructions for common browsers: [Chrome](https://support.google.com/chrome/answer/95647), [Firefox](https://support.mozilla.org/en-US/kb/enhanced-tracking-protection-firefox-desktop), [Safari](https://support.apple.com/guide/safari/manage-cookies-sfri11471/mac), [Edge](https://support.microsoft.com/en-us/microsoft-edge/delete-cookies-in-microsoft-edge-63947406-40ac-c3b8-57b9-2a946a29ae09). ## Changes We will update this policy if we change our cookie usage. Any change will be reflected in the "Last updated" date at the top of this page. ## Contact Questions? Email [legal@candorhost.com](mailto:legal@candorhost.com). --- # Contact URL: https://candordeploy.com/contact/ No contact forms that vanish into a CRM. Here is every channel, what it's for, and how fast we respond. ## Support Customers: email [hello@candorhost.com](mailto:hello@candorhost.com) from your account's address, with the project name and what you saw. Response-time targets by ticket type are published in [Candid Support](/support-standard/) — site-down tickets get a first response within **1 hour** during business hours. Your dashboard is at [app.candordeploy.com](https://app.candordeploy.com/). ## Email These addresses go to real mailboxes, not autoresponders: | Address | For | |---|---| | [hello@candorhost.com](mailto:hello@candorhost.com) | General questions, pre-sales, anything else | | [migrations@candorhost.com](mailto:migrations@candorhost.com) | Questions about moving an existing site or app to Candor | | [security@candorhost.com](mailto:security@candorhost.com) | Vulnerability reports ([disclosure policy](/security/)) | | [abuse@candorhost.com](mailto:abuse@candorhost.com) | Abuse reports ([what we act on](/abuse/)) | | [dmca@candorhost.com](mailto:dmca@candorhost.com) | Copyright notices ([DMCA process](/dmca/)) | | [legal@candorhost.com](mailto:legal@candorhost.com) | Legal and privacy matters ([privacy policy](/privacy/)) | ## Is something down? Check [status.candorhost.com](https://status.candorhost.com) first — it updates before we could type a reply, and every incident gets a public timeline. ## The company Candor Host is operated by **R Software & Consulting LLC**, based in Jacksonville, Florida. More about who we are and why we run things this way: [About](/about/). --- # Anti-Spam Policy URL: https://candordeploy.com/anti-spam/ **Last updated: July 9, 2026** Candor Host takes email deliverability seriously. Every customer benefits from a hosting platform whose IP ranges are trusted by mailbox providers. Every customer is harmed when someone abuses that. This policy explains what we require and what we do when the rules are broken. ## What we require of customers who send email If you send any email — transactional, marketing, or otherwise — from a domain hosted on Candor Host, you agree to: ### Compliance with anti-spam laws - **U.S. CAN-SPAM Act.** Every commercial email must include an accurate sender identification, a valid physical postal address, a clear opt-out mechanism, and honor opt-outs within 10 business days. - **Canadian Anti-Spam Legislation (CASL).** Explicit or implied consent required before sending commercial electronic messages to Canadian recipients. - **UK/EU GDPR + PECR.** Consent must be freely given, specific, informed, and unambiguous. No pre-checked boxes. - **Any other jurisdiction where your recipients are located.** ### Consent-based sending - Send only to recipients who have given you meaningful, verifiable consent to receive email. - Do not send to purchased, rented, or scraped email lists. Ever. This is the single most common source of spam complaints. - Maintain records of consent that you can produce on request. ### Proper email authentication We provide the tools for you to configure: - **SPF** — authorize the sending servers for your domain. - **DKIM** — cryptographically sign outbound mail. - **DMARC** — publish a policy telling receivers what to do with mail that fails SPF and DKIM. Sending email from a domain without properly configured SPF, DKIM, and DMARC significantly increases the chance your mail lands in spam and reflects poorly on the platform. We may throttle or block outbound mail from misconfigured domains. ### Reasonable rate For high-volume sending (typically over 5,000 messages per day), we require you to use a transactional email service (Postmark, Mailgun, Amazon SES, Google Workspace SMTP, or similar) rather than the built-in SMTP relay. This protects our IP reputation and improves your deliverability. ### Bounce and complaint handling - Suppress and stop sending to hard-bounced addresses. - Remove complainants (unsubscribes, spam-report addresses) from your list within 10 business days, sooner where required by law. - Monitor and act on feedback loop reports from major mailbox providers. ## What we do not allow - **Purchased or scraped lists.** No exceptions. - **"Confirmed opt-in" without an actual confirmation email.** Single opt-in is acceptable in some jurisdictions; misrepresenting your practice is not. - **Email address harvesting** from any source, including from other Candor Host customers. - **Third-party affiliate email** where you are sending on behalf of someone whose consent record you cannot verify. - **Snowshoe spam** — spreading identical messages across many domains or IPs to evade filters. - **Email joe-jobbing** — impersonating another domain to damage its reputation. - **Backscatter** — bounces sent to forged sender addresses. ## Reports and enforcement We monitor a range of signals to detect spam originating from our infrastructure, including feedback loop reports from mailbox providers, third-party blocklist entries against our IP ranges, spam-trap hits, and reports from mail administrators. When we identify or are notified of spam sent from a Candor Host account, we may: 1. **Throttle** outbound mail from the account while we investigate. 2. **Suspend** SMTP for the account. 3. **Request an explanation** and remediation plan. 4. **Terminate** the account for continued or serious violations, per our [Acceptable Use Policy](/aup/) and [Terms of Service](/terms/). Repeat offenders are terminated and may not open a new account. ## Reporting spam If you have received spam from a domain hosted on Candor Host, report it to [abuse@candorhost.com](mailto:abuse@candorhost.com) with the full message headers. See our [Abuse Reporting Policy](/abuse/) for details. ## Transparency about our IP ranges Our outbound mail IP ranges are published on our status page. If our ranges are listed on a blocklist that we can dispute, we will do so; if a listing is our responsibility, we will investigate and share what we find. ## Contact Questions? Email [abuse@candorhost.com](mailto:abuse@candorhost.com) for spam reports, or [legal@candorhost.com](mailto:legal@candorhost.com) for policy questions. --- # DMCA Copyright Policy URL: https://candordeploy.com/dmca/ **Last updated: July 9, 2026** R Software & Consulting LLC, doing business as Candor Host, respects the intellectual property rights of others and expects our customers to do the same. This policy explains how to submit a notice of alleged copyright infringement under the Digital Millennium Copyright Act (17 U.S.C. § 512) and how we handle those notices. ## Designated agent Notices of alleged copyright infringement must be sent to our designated DMCA agent: **DMCA Agent** — R Software & Consulting LLC Email: [dmca@candorhost.com](mailto:dmca@candorhost.com) Postal address: R Software & Consulting LLC, Attn: DMCA Agent, Jacksonville, Florida, USA We are registered with the U.S. Copyright Office under 17 U.S.C. § 512(c)(2). Our current registration is on file at [dmca.copyright.gov](https://dmca.copyright.gov/). ## Filing a takedown notice To be effective under the DMCA, a takedown notice must be a written communication that includes substantially all of the following: 1. A physical or electronic signature of a person authorized to act on behalf of the owner of an exclusive right allegedly infringed. 2. Identification of the copyrighted work claimed to have been infringed, or a representative list if multiple works are covered by a single notification. 3. Identification of the material claimed to be infringing, with information reasonably sufficient to permit us to locate it (URL is preferred). 4. Contact information sufficient to permit us to contact you: name, address, telephone number, and email address. 5. A statement that you have a good-faith belief that the use of the material is not authorized by the copyright owner, its agent, or the law. 6. A statement, made under penalty of perjury, that the information in the notification is accurate and that you are the copyright owner or authorized to act on the owner's behalf. Send the notice by email to [dmca@candorhost.com](mailto:dmca@candorhost.com). Submissions missing any of the above elements may be treated as ineffective and disregarded. **Warning:** Under 17 U.S.C. § 512(f), any person who knowingly makes a material misrepresentation in a DMCA notice may be liable for damages, including costs and attorneys' fees. Please consult an attorney before submitting a notice if you have any doubt about whether particular material is protected by copyright. ## What happens after a valid notice Upon receipt of a valid DMCA notice, we will: 1. Remove or disable access to the allegedly infringing material within a reasonable time, typically within 48 hours. 2. Notify the customer whose content was removed and provide them a copy of the notice. 3. Inform the customer of their right to submit a counter-notification. 4. Log the notice in our repeat-infringer records. ## Counter-notification If your content was removed under a DMCA notice and you believe it was removed in error or because of misidentification, you may submit a counter-notification. To be effective, a counter-notification must include: 1. Your physical or electronic signature. 2. Identification of the material that was removed or disabled, and the location where it appeared before removal. 3. A statement, under penalty of perjury, that you have a good-faith belief that the material was removed or disabled as a result of mistake or misidentification. 4. Your name, address, and telephone number, and a statement that you consent to the jurisdiction of the Federal District Court for the judicial district in which your address is located (or, if outside the United States, the U.S. District Court for the Middle District of Florida), and that you will accept service of process from the person who submitted the original notice or their agent. Send the counter-notification to [dmca@candorhost.com](mailto:dmca@candorhost.com). ## What happens after a counter-notification Upon receipt of a valid counter-notification, we will: 1. Forward the counter-notification to the person who submitted the original DMCA notice. 2. Inform them that we will restore the material in 10 to 14 business days unless we receive notice that they have filed a lawsuit seeking a court order to keep the material removed. 3. Restore the material within 10 to 14 business days if no such notice is received. ## Repeat infringer policy Consistent with 17 U.S.C. § 512(i), we will terminate the accounts of customers who are repeat infringers. We generally consider a customer a repeat infringer after three or more valid DMCA notices against their content within a rolling 12-month period, though we reserve the right to terminate any account for a single serious infringement. We keep a log of DMCA notices and counter-notifications for each account, and we make termination decisions based on that record. Terminated repeat infringers may not open a new account. ## Non-copyright complaints This policy applies only to copyright complaints under the DMCA. For other content complaints — trademark, defamation, privacy violations, harassment, and so on — please contact [abuse@candorhost.com](mailto:abuse@candorhost.com) and see our [Abuse Reporting Policy](/abuse/). For general legal inquiries, contact [legal@candorhost.com](mailto:legal@candorhost.com). --- # Data Processing Agreement URL: https://candordeploy.com/dpa/ **Last updated: July 9, 2026** This Data Processing Agreement ("DPA") forms part of the [Terms of Service](/terms/) between R Software & Consulting LLC dba Candor Host ("Processor," "we") and the Customer identified in the applicable subscription ("Controller," "you"). It applies where you use Candor Host to process personal data as defined under the EU General Data Protection Regulation (Regulation (EU) 2016/679, "GDPR"), the UK GDPR, or the Swiss Federal Act on Data Protection ("FADP"). By using Candor Host to process personal data, you accept this DPA. If your organization requires a signed copy, download it from your client portal or request one at [legal@candorhost.com](mailto:legal@candorhost.com). ## 1. Definitions Terms used in this DPA have the meanings given to them under the GDPR unless defined otherwise. In particular, "Controller," "Processor," "Personal Data," "Processing," "Sub-processor," and "Data Subject" have the meanings given in Article 4 GDPR. ## 2. Roles and scope You are the Controller of the Personal Data that you upload, transmit, or otherwise process through Candor Host ("Customer Data"). Candor Host is the Processor of Customer Data. This DPA applies for the duration of your subscription and until all Customer Data has been returned or deleted. ## 3. Subject matter, nature, and purpose of Processing **Subject matter:** provision of managed hosting services as described in the Terms of Service, including storage, transmission, and computation on Customer Data. **Nature and purpose:** to host and serve websites, applications, databases, and email associated with the Customer's account. **Duration:** for the duration of the subscription and any post-termination retention period specified in the [Cancellation Policy](/cancellation/). **Types of Personal Data:** as determined by Controller, and may include identifiers (names, emails, IP addresses), account credentials, transaction records, communications, and any other Personal Data Controller chooses to place on the Candor Host platform. **Categories of Data Subjects:** as determined by Controller, and may include Controller's customers, users, employees, prospects, and website visitors. ## 4. Processor obligations We will: 1. Process Customer Data only on documented instructions from you, including with regard to international transfers, unless legally required to do otherwise. If we believe an instruction violates data protection law, we will inform you promptly. 2. Ensure that persons authorized to process Customer Data have committed themselves to confidentiality or are under a statutory obligation of confidentiality. 3. Implement appropriate technical and organizational security measures (see Section 8). 4. Assist you, taking into account the nature of Processing and the information available, in fulfilling your obligations under Articles 32–36 GDPR (security, breach notification, DPIA, prior consultation). 5. Assist you, insofar as possible, in responding to Data Subject requests under Chapter III GDPR. 6. Not engage a Sub-processor without prior authorization (see Section 6). 7. Delete or return all Customer Data at the end of the provision of services (see Section 12). 8. Make available all information necessary to demonstrate compliance with Article 28 GDPR and allow for and contribute to audits (see Section 11). ## 5. Controller instructions Your acceptance of the Terms of Service, this DPA, and your use of Candor Host constitute your general written instructions for Processing. Additional or specific instructions must be provided in writing and may be subject to change management. We will not use Customer Data for any purpose other than providing the services described in the Terms. ## 6. Sub-processors You authorize us to engage the Sub-processors listed at [candorhost.com/subprocessors/](/subprocessors/) to process Customer Data for the purposes described in this DPA. We will inform you of any intended change to the Sub-processor list at least 30 days before the change takes effect, by updating the Sub-processor page and, where you have subscribed, sending notice to the email on file. You may object to a proposed Sub-processor within 30 days by written notice to [legal@candorhost.com](mailto:legal@candorhost.com). If we cannot accommodate your objection, you may terminate the affected service and receive a pro-rata refund of prepaid fees. We enter into written contracts with each Sub-processor imposing data protection obligations no less protective than those in this DPA. We remain responsible for Sub-processor performance. ## 7. Data Subject requests We will, taking into account the nature of Processing, assist you with appropriate technical and organizational measures in responding to Data Subject requests. If we receive a request from a Data Subject directly, we will not respond substantively but will forward the request to you promptly. Standard assistance is included in your subscription. Substantial or repeated requests may be subject to additional professional-service fees, communicated in advance. ## 8. Security measures We implement appropriate technical and organizational measures to ensure a level of security appropriate to the risk, including: - **Encryption:** TLS 1.2 or higher for data in transit; at-rest encryption for backups. - **Access control:** role-based access; multi-factor authentication for staff; audit logs. - **Container isolation:** per-site cgroups with kernel-enforced CPU, memory, and namespace boundaries. - **Backups:** daily automated backups with off-site copies; documented restore procedures. - **Network security:** stateful firewalls, DDoS mitigation via upstream provider, restricted internal networks. - **Personnel:** confidentiality obligations, security training, background checks where legally permitted. - **Vulnerability management:** regular patching, security advisories, external reporting channel per our [Vulnerability Disclosure Policy](/security/). - **Business continuity:** documented incident response and disaster recovery procedures. We may update these measures over time provided they do not materially reduce the security of Customer Data. ## 9. Personal data breach notification We will notify you without undue delay after becoming aware of a Personal Data Breach affecting Customer Data, and in any event within 72 hours. The notification will include, to the extent known: - Nature of the breach, categories and approximate number of Data Subjects and records concerned. - Name and contact details of our contact point for further information. - Likely consequences of the breach. - Measures taken or proposed to address the breach, including where appropriate to mitigate its adverse effects. ## 10. International transfers Our servers are located in the United States. Where Customer Data is transferred from the European Economic Area, United Kingdom, or Switzerland to the United States or another country outside those jurisdictions, transfers are made under the European Commission's Standard Contractual Clauses (Commission Implementing Decision (EU) 2021/914) ("SCCs"), which are incorporated into this DPA by reference. The parties agree to Module Two (Controller to Processor) for direct transfers, and Module Three (Processor to Processor) for onward transfers to Sub-processors. For UK transfers, the UK Addendum to the SCCs (Version B1.0) applies. For Swiss transfers, the SCCs are amended to reference the FADP and Swiss Federal Data Protection and Information Commissioner as required. ## 11. Audits We provide the following to demonstrate compliance with Article 28: - This DPA and the Sub-processor list. - Any SOC 2 or ISO 27001 reports we obtain, on request under NDA. - Written responses to reasonable audit questionnaires. - On-site audit, no more than once every 12 months and at your expense, on 60 days' written notice, provided the audit does not disrupt operations or compromise other customers' data. On-site audits may be replaced at our option by an equivalent third-party audit report. ## 12. Return or deletion at end of service Upon termination of your subscription, we will make Customer Data available for export for 30 days, then permanently delete Customer Data, backups excepted, in accordance with the [Cancellation Policy](/cancellation/). Backups are overwritten on a rolling 30-day cycle. Records required to be retained by law (billing records, DMCA notice log, security logs) are excluded from deletion for the applicable statutory period. ## 13. Liability The liability limits set forth in the Terms of Service apply to this DPA. Nothing in this DPA limits liability that cannot be limited under applicable data protection law. ## 14. Term and termination This DPA is effective for the duration of the subscription and continues until Customer Data has been returned or deleted in accordance with Section 12. Sections 8, 9, 10, 12, and 13 survive termination. ## 15. Conflicts In case of conflict between this DPA and the Terms of Service regarding the Processing of Personal Data, this DPA prevails. In case of conflict between this DPA and the SCCs, the SCCs prevail. ## 16. Contact Data protection inquiries: [legal@candorhost.com](mailto:legal@candorhost.com). --- # Privacy Policy URL: https://candordeploy.com/privacy/ **Last updated: July 28, 2026** This Privacy Policy explains how R Software & Consulting LLC, doing business as Candor Host ("we," "us"), collects, uses, and protects information when you use our website and hosting services. We keep this short and plain on purpose. ## 1. Information we collect - **Account information** you provide: name, email address, billing address, and phone number. - **Payment information**: processed securely by our payment provider, Stripe. We do not store full card numbers on our servers. - **Service data**: the content, files, databases, and email you host with us, which we process only to provide the service. See Section 8 for how we treat this data. - **Technical data**: IP addresses, server and access logs, and basic analytics we use to operate, secure, and improve the service. See our [Analytics Transparency page](/analytics-transparency/) for exactly what our website analytics collect and don't collect. - **Support communications**: emails and tickets you send us, and our responses. We do not collect biometric data, health data, or precise geolocation. ## 2. How we use information We use your information to: - Provide and bill for hosting services. - Secure our platform against abuse and attack. - Provide customer support. - Send you service-related messages (invoices, renewal notices, security notices, incident reports, breach notifications). - Comply with legal obligations. - Enforce our Terms of Service and Acceptable Use Policy. We do not sell your personal information. We do not use your personal information for advertising. We do not share your data with any party except as described in Section 3. ## 3. Sharing and disclosure We share information only with: - **Subprocessors** who help us run the service, listed at [candorhost.com/subprocessors/](/subprocessors/). Each is bound by contract to protect your data. - **Law enforcement or courts**, when required by valid legal process and after taking reasonable steps to notify you unless legally prohibited from doing so. - **Successor entities** in the event of a merger, acquisition, or sale of substantially all of our assets, under equivalent protections. We do not sell data to marketers, data brokers, or affiliates. ## 4. Legal basis for processing (GDPR) For customers in the European Economic Area, United Kingdom, or Switzerland, we process personal data under the following bases: - **Contract performance:** to provide the hosting service you've purchased. - **Legitimate interests:** to secure our platform, prevent fraud, and improve the service. - **Legal obligation:** to comply with tax, accounting, and law-enforcement requirements. - **Consent:** where we ask for it, which you can withdraw at any time. Candor Host acts as the **data controller** for account, billing, and technical data described above. For the content you host with us (Service Data), Candor Host acts as a **data processor** on your behalf. Our [Data Processing Agreement](/dpa/) governs that processing and is available on request or as a downloadable addendum in your client portal. ## 5. Your rights Depending on where you live, you may have the right to: - **Access** the personal information we hold about you. - **Correct** inaccurate or incomplete data. - **Delete** your personal information ("right to erasure"). - **Restrict** or **object** to certain processing. - **Portability**: receive your data in a machine-readable format and transmit it to another controller. - **Withdraw consent** where processing is based on consent. - **Lodge a complaint** with your local data protection authority. For EU residents, that is the supervisory authority in your Member State. To exercise any of these rights, email [legal@candorhost.com](mailto:legal@candorhost.com) with "Data request" in the subject line. We will respond within 30 days. We may need to verify your identity before fulfilling requests. ## 6. California residents (CCPA / CPRA) California residents have the right to know what personal information we collect, the right to delete it, the right to correct it, and the right to opt-out of the sale or sharing of personal information. **We do not sell or share personal information** as those terms are defined by the California Consumer Privacy Act. We will not discriminate against you for exercising any CCPA right. To exercise CCPA rights, email [legal@candorhost.com](mailto:legal@candorhost.com). ## 7. Children's privacy Our services are not directed to children under 13, and we do not knowingly collect personal information from anyone under 13. If we learn we have collected personal information from a child under 13, we will delete it. If you believe a child has provided us information, contact [legal@candorhost.com](mailto:legal@candorhost.com). ## 8. Service data (content you host) Content that you host on Candor Host — websites, databases, email — is your data. We access it only to provide the service, respond to your support requests, investigate abuse of our platform, or comply with legal process. We do not read, analyze, or share your content for any other purpose. Our staff access to service data is logged and restricted. ## 9. International data transfers Our servers are located in the United States. If you access our services from outside the United States, your data will be transferred to and processed in the U.S. For customers in the European Economic Area, United Kingdom, or Switzerland, transfers are made under the European Commission's Standard Contractual Clauses (2021/914) or successor mechanisms. Our Data Processing Agreement includes the applicable clauses. ## 10. Data retention We retain: - **Account and billing records** for as long as your account is active, plus seven years after cancellation for tax and accounting purposes. - **Hosted content** for the duration of your service. Upon cancellation, we retain content for 30 days to allow reactivation, then delete it as described in our [Cancellation Policy](/cancellation/). - **Backups** according to the retention schedule of the plan you purchased (typically 30 days on rolling snapshots). - **Support communications** for three years. - **Web server access logs** only briefly. Our hosting control panel feeds them into its traffic-statistics processor and then discards them, typically within five to ten minutes. We do not keep a long-term archive of web server access logs. See our [Analytics Transparency page](/analytics-transparency/) for what these logs contain. - **System and security logs** — SSH authentication records, firewall events, and similar — for roughly four to five weeks on rolling weekly rotation, for security investigations and troubleshooting. You can request earlier deletion of your data at any time by emailing [legal@candorhost.com](mailto:legal@candorhost.com), subject to legal retention requirements. ## 11. Security We protect your data with encryption in transit (TLS 1.2+), access controls, per-site container isolation, regular backups, and staff training. Access to production systems is restricted, logged, and reviewed. No system is perfectly secure, but we take reasonable measures to safeguard your information. **Breach notification.** If we suffer a personal data breach that is likely to result in a risk to your rights, we will notify affected customers and the relevant supervisory authorities without undue delay and no later than 72 hours after becoming aware of it, in accordance with GDPR Article 33. To report a suspected security vulnerability, see our [Vulnerability Disclosure Policy](/security/). ## 12. Cookies Our marketing website and client portal use only cookies necessary for the site to function — for example, keeping you signed in, remembering your language preference, and providing CSRF protection. We do not use advertising or tracking cookies. Full details in our [Cookie Policy](/cookies/). ## 13. Do Not Track and Global Privacy Control We do not track visitors across third-party sites, so DNT and GPC signals do not change our behavior. We follow the same privacy practices for every visitor. ## 14. Changes to this policy We may update this policy from time to time. If we make material changes, we will notify you by email or through your client portal at least 30 days before the changes take effect. The "Last updated" date at the top of this page reflects the latest version. ## 15. Contact Questions about privacy? Email [legal@candorhost.com](mailto:legal@candorhost.com). **Data Controller:** R Software & Consulting LLC dba Candor Host Jacksonville, Florida, USA --- # Subprocessors URL: https://candordeploy.com/subprocessors/ **Last updated: October 18, 2026** This page lists the subprocessors Candor Host uses to deliver its hosting service. Under the GDPR, subprocessors are third parties that process personal data on our behalf. Each is bound by a written contract with data protection obligations no less protective than those in our [Data Processing Agreement](/dpa/). We update this list when subprocessors are added or removed. Material changes are communicated to customers by email or through the client portal at least 30 days in advance. ## Current subprocessors | Subprocessor | Purpose | Location | Data types | |---|---|---|---| | **Stripe, Inc.** | Payment processing for subscription billing. | United States (Stripe operates globally with EU/UK subsidiaries). | Customer name, billing address, email, payment card details, transaction records. | | **Cloudflare, Inc.** | DDoS mitigation, DNS caching, and edge CDN, at customer's option. | Global anycast network with data centers in multiple regions. | IP addresses, HTTP request metadata. | | **Amazon Web Services, Inc.** | Cold-storage backups and transactional email relay when explicitly configured by customer. | United States (US East region). | Encrypted backup archives; email metadata for outbound transactional email. | | **OVHcloud US, LLC** | Compute infrastructure for VPS and dedicated-server products — the instances that run customer workloads — and for Candor Deploy: the control plane (the platform database, client portal, and build orchestration) and the application workloads (the node that runs customer apps, background workers, and managed databases). | United States (US-East: Vint Hill, Virginia; US-West: Oregon). Candor Deploy: OVH US-East (Vint Hill, Virginia) only. | All content and data the customer stores on their VPS or dedicated server. For Candor Deploy: account and project records, service configuration, environment variables, build logs and metadata, and all content and data a customer's Candor Deploy apps process or store, including the contents of managed Postgres, MySQL, and Redis instances. | | **The Constant Company, LLC (Vultr)** | Compute infrastructure for VPS instances in additional US regions, when provisioned there. | United States (multiple regions). | All content and data the customer stores on their VPS. | We use no third-party website analytics, so no subprocessor receives data about visitors to candorhost.com. The self-hosted analytics we plan to add will run on our own infrastructure and will not change this. See our [Analytics Transparency page](/analytics-transparency/) for details on what we collect from visitors to candorhost.com. ## Data center and network operator Our managed WordPress hosting runs on hardware we operate directly at a colocation facility. Our VPS, dedicated-server, and Candor Deploy products are provisioned on compute infrastructure operated by the providers named above (OVHcloud, and Vultr in some regions); on those products the provider supplies the physical facility, power, network, and virtualization layer, and the customer's data lives on that infrastructure. In every case the provider is bound by the subprocessor terms described on this page. Candor Deploy's control plane — the platform database, the client portal, and the build system — and the node that runs customer applications and their managed databases are both in OVH US-East (Vint Hill, Virginia), United States, on servers we rent from OVHcloud. | Facility | Location | Role | |---|---|---| | **Vint Hill, Virginia colocation** | Vint Hill, VA, United States. | Physical facility, power, network connectivity for web1 (managed WordPress hosting). No access to customer data. | | **OVHcloud US data centers** | Virginia & Oregon, United States. | Compute, facility, power, and network for VPS and dedicated-server products, and for Candor Deploy: the control plane, application workloads, and managed databases. | ## Objection process Under Section 6 of our [Data Processing Agreement](/dpa/), customers may object to a new subprocessor within 30 days of notification. If we cannot accommodate the objection, the customer may terminate the affected service and receive a pro-rata refund. Send objections to [legal@candorhost.com](mailto:legal@candorhost.com). ## What each subprocessor can and can't do Every subprocessor is contractually restricted to processing customer data solely for the purpose of providing services to Candor Host. No subprocessor is permitted to: - Sell or share customer data with third parties. - Use customer data for advertising or profiling. - Transfer customer data to jurisdictions without adequate data protection safeguards. - Retain customer data beyond the period necessary to provide services. We conduct written data protection due diligence on subprocessors before onboarding them and periodically review their compliance. ## International transfers Subprocessors located outside the European Economic Area, United Kingdom, or Switzerland are engaged under the European Commission's Standard Contractual Clauses (Commission Implementing Decision (EU) 2021/914) or an equivalent transfer mechanism. ## Historical subprocessors We maintain a record of subprocessors previously used but no longer engaged. This list is available on request under the audit provisions of our DPA. ## Contact Questions about our subprocessor list or objections to a specific subprocessor: [legal@candorhost.com](mailto:legal@candorhost.com). --- # Vulnerability Disclosure Policy URL: https://candordeploy.com/security/ **Last updated: July 9, 2026** Candor Host welcomes reports from security researchers. This policy explains how to report a suspected vulnerability, what is in scope, and what we commit to researchers who report in good faith. ## Reporting a vulnerability Email [security@candorhost.com](mailto:security@candorhost.com). If you require encrypted communication, request our current PGP key in your initial message and we will provide it. Include: - A description of the vulnerability and its potential impact. - Steps to reproduce, ideally with a proof of concept. - The affected URL, endpoint, or component. - Your name or handle if you'd like credit, or "anonymous" if not. ## Scope The following are in scope for coordinated disclosure: - The candorhost.com marketing website. - The app.candordeploy.com customer portal. - Any Candor Host-operated API endpoint. - Candor Host-operated mail infrastructure. - Candor Host-managed DNS infrastructure. The following are out of scope and should not be reported here: - Vulnerabilities in customer-hosted content or applications (report those to the customer directly). - Vulnerabilities in third-party software we integrate with (WordPress, Stripe, our upstream network providers). Report those to the vendor. - Social engineering of Candor Host staff. - Physical attacks against our facilities or infrastructure. - Denial of service testing. - Automated scanning or brute-force attacks. ## Safe harbor If you make a good-faith effort to comply with this policy while reporting a vulnerability, we consider your testing and reporting to be authorized and: - We will not pursue civil or criminal action against you, or refer your activity to law enforcement. - We will work with you if a third party (upstream provider, law enforcement) takes action based on your testing that we can reasonably intervene on. To qualify for safe harbor, you must: - Only test against your own accounts or accounts you have explicit written permission to test. - Not access, modify, download, or delete data belonging to any other customer. - Not perform any action that would degrade service for other customers. - Not violate any applicable law. - Give us a reasonable time to remediate before publicly disclosing. ## What we commit - We will acknowledge receipt of your report within 3 business days. - We will provide an initial triage response — including whether the report is in scope, an initial severity assessment, and an expected remediation timeline — within 10 business days. - We will keep you updated on progress toward remediation. - We will credit you publicly on this page (with your permission) once the vulnerability is fixed. - We will not require a non-disclosure agreement to receive a report; however, we ask that you not publicly disclose the vulnerability until it is remediated and coordinated with us. ## Bug bounty We do not currently operate a paid bug bounty program. As we scale, we intend to launch one. For now, we offer public credit and our sincere thanks. ## security.txt For automated discovery, we publish a `security.txt` file at [candordeploy.com/.well-known/security.txt](/.well-known/security.txt) per RFC 9116. ## Contact - Security reports: [security@candorhost.com](mailto:security@candorhost.com) - General legal inquiries: [legal@candorhost.com](mailto:legal@candorhost.com) ## Hall of fame Once we receive our first accepted report, we will list acknowledged researchers here. --- # Candid Support — the support standard URL: https://candordeploy.com/support-standard/ **Last updated: July 21, 2026** Every hosting company claims great support. So this page tells you exactly what ours is — the specific commitments we make, the response times we publish, and the things we will not do inside a support conversation. We call it **Candid Support**. It goes with the brand for a reason. The person who answers your ticket has the access and the authority to fix your problem, and will tell you plainly what broke and what we did about it. ## The five commitments ### 1. Real answers, not routing. A chatbot may collect your account and problem details upfront so an engineer isn't asking you to re-explain — that's fine, it saves your time. But the reply that solves your problem comes from someone who can actually solve it. Not a tier-1 rep whose job is to route your ticket up a ladder to somebody with the actual permissions. ### 2. The engineers on the support rotation have production access. Every engineer who replies to your ticket also deploys code, restores backups, and reads the same server logs the runbook is based on. There is no separate escalation tier that has more context than the person answering you — because they already have that context. If they need help, they ask a peer. That is not a customer-facing escalation, it is how a healthy engineering team works. ### 3. No upsells inside a support conversation. Ever. You had a broken plugin. You do not need to hear about our next tier. The support conversation ends when your problem is solved. If we ever notice something that suggests a plan change would fit you better, we send that as a separate, opt-in message from billing — never mixed into a ticket. ### 4. Root cause and fix in the reply — not just "resolved, please close." When we fix something for you, the closing reply includes what actually broke, why it broke, and what we did. Every ticket. If we cannot identify root cause (rare, but it happens), we tell you that too, plainly, and what we would need to trace it further. ### 5. Response-time targets are published — and honest. Not "we'll get back to you soon." Numbers we can actually hit, published here, held to. | Ticket type | First response | Resolution or ETA | |---|---|---| | Site down | 1 hour (business hours) | Same day | | Migration in progress | Same business day | Priority attention until it's done | | Everything else | 1 business day | 3 business days | These targets assume the business hours below. In practice we usually reply faster — but a target you can only sometimes hit isn't a target, it's marketing. If we miss one, we owe you an explanation in the ticket, not a form apology. ## What we don't do - We don't run separate tier 1 / tier 2 / tier 3 support ladders. There is one tier. It has production access. - We don't outsource support to a third-party call center. - We don't require you to prove you tried clearing your browser cache before we look at the problem. - We don't close tickets without an explanation. - We don't sell add-ons inside a support conversation. - We don't push you off the ticket back to a knowledge base article that doesn't answer your question. ## Hours **Business hours:** 9am–6pm ET, Monday through Friday. The first-response targets above apply during these hours. **Outside business hours:** automated monitoring watches every server around the clock, and a down site alerts us immediately. We also read tickets well past posted hours most days — you'll often get an answer at 9pm — but that's a courtesy, not a commitment. An after-hours emergency line is in the works; when it's real, it will be announced here. **Public and religious holidays:** monitoring still runs and outages still get attention. Routine tickets may wait until the next business day. We do not pretend to be a 24/7 shop. That would be dishonest for what we can staff today. As we grow, hours expand and we announce it here. ## What to include when you open a ticket Faster fixes start with better tickets. Please include, where possible: - The URL affected. - Approximate timestamp of when the problem started. - What you were doing when it broke. - Any recent changes you know about (plugin updates, code deploys, DNS changes). - Your account email so we don't have to ask. ## How to reach us - **Candor Deploy portal:** [app.candordeploy.com](https://app.candordeploy.com/) → open a chat from the bubble in the corner. - **Email:** [hello@candorhost.com](mailto:hello@candorhost.com) — auto-opens a ticket. ## Escalation, when it applies If a Candid Support response ever falls short — a target is missed and we haven't explained why, an issue is closed without root cause, or something feels off — email [legal@candorhost.com](mailto:legal@candorhost.com) with the ticket number and a short description of what went wrong. That inbox is monitored by leadership and the response is not routed through support. ## Why "Candid Support"? Because that's what our whole company is about. If we can be honest about the price you renew at and the number of sites on your box — we can be honest about what support means too. It's not fanatical. It's not legendary. It's not blazing. It's the person who answers your ticket telling you exactly what broke and fixing it. --- # Refund Policy URL: https://candordeploy.com/refund/ **Last updated: July 21, 2026** We stand behind our service. Every new hosting plan comes with a 30-day money-back guarantee. This page explains how it works and what is and isn't refundable. ## The 30-day money-back guarantee If you are not satisfied with your Candor Host hosting service for any reason within 30 days of your initial purchase, contact us and we will refund your hosting fees in full. The guarantee applies to: - Any hosting plan on your first purchase. - Any prepaid term (monthly, annual, or multi-year) on your first purchase. ## Included in the guarantee Full refund of prepaid hosting fees for the plan you purchased, when requested within 30 days of your initial purchase. ## Not included in the guarantee The following are non-refundable at any time: - **Domain registrations** — once we register a domain with the registrar on your behalf, the registration fee has been paid to the registrar and is not refundable to us or to you. The domain itself remains yours to transfer elsewhere. - **Paid SSL certificates** purchased through us from a third-party certificate authority (Let's Encrypt certificates are free and included on every plan). - **One-time professional services** — for example, custom migration work. - **Add-on services purchased separately** — for example, dedicated IP addresses, premium DNS, custom email retention, or any add-on billed as a one-time fee. - **Renewal payments on monthly plans** past their first term. These are refundable only if we make a material breach of the [Terms of Service](/terms/) that we fail to cure within a reasonable time. (Prepaid annual and multi-year terms are different — they get the pro-rated refund described below, whether it's your first term or a renewal.) ## How to request a refund Email [hello@candorhost.com](mailto:hello@candorhost.com) from the email address on your Candor Host account. Include your account number or invoice number. That's it — you don't need a reason, though we appreciate feedback so we can improve. We will process refunds within 5 business days. Refunds are issued to the original payment method. Depending on your bank, funds may take an additional 3-10 business days to appear on your statement. ## After the 30-day window If you cancel more than 30 days into your service: - **Monthly plans:** service continues through the end of the current billing period. No refund is issued for the current or any past period. - **Annual or multi-year plans:** we refund the unused full months of your prepaid term, at the rate you actually paid. The month you cancel in counts as used; the discount you earned by prepaying stays yours — we don't recalculate the used months at the monthly rate. Example: you paid $150 for a year of shared hosting ($12.50 a month effective) and cancel with four full months left — we refund $50. This applies whenever the term was paid — first purchase or renewal. The consumer-protection laws of your jurisdiction may give you additional rights. This policy does not limit those rights. ## If we terminate your account If we terminate your account for a violation of our [Acceptable Use Policy](/aup/) or [Terms of Service](/terms/), you are not entitled to a refund for the remaining prepaid term, except as required by law. If we terminate your account for any reason other than an AUP or Terms violation, we will refund prepaid fees for the unused portion of your term. ## Chargebacks If you dispute a Candor Host charge with your card issuer or bank without first contacting us, we may suspend your account pending resolution of the dispute. Please email us first — refunds are usually simpler and faster than chargebacks. ## Contact Refund requests, questions, or complaints: [hello@candorhost.com](mailto:hello@candorhost.com). --- # Terms of Service URL: https://candordeploy.com/terms/ **Last updated: July 9, 2026** These Terms of Service ("Terms") govern your access to and use of the hosting services provided by R Software & Consulting LLC, doing business as Candor Host ("Candor Host," "we," "us"). By creating an account or using our services, you agree to these Terms. ## 1. Accounts You must provide accurate account information and keep it current. You are responsible for all activity under your account and for keeping your login credentials secure. You must be at least 18 years old to purchase services. You are responsible for notifying us promptly of any unauthorized use of your account. ## 2. Services and plans We provide managed web hosting on the plans described on our website. Published plan limits — such as storage, bandwidth, and the number of sites per server — are accurate and enforced as stated. We will give you at least 30 days' notice before making a material change to a plan you are subscribed to. Features we label as previews or early access may be offered from time to time; those features are provided as-is and may change or end without notice. ## 3. Fees, billing, and renewals Services are billed in advance on the cycle you select. The price you sign up at is the price you renew at unless we notify you of a change at least 30 days before your renewal. Payments are non-refundable except as described in Section 4. You authorize us to charge your payment method on file for recurring fees until you cancel. If a charge fails, we may suspend service until payment is received. ## 4. Refunds New hosting accounts include a 30-day money-back guarantee. If you are not satisfied within 30 days of your initial purchase, contact us for a full refund of hosting fees. Domain registrations, SSL certificates purchased through us, and any fees paid to third parties are non-refundable. Full details in our [Refund Policy](/refund/). ## 5. Acceptable use You agree to abide by our [Acceptable Use Policy](/aup/), which is incorporated into these Terms by reference. Prohibited uses include, but are not limited to: - Hosting or distributing unlawful, infringing, or malicious content, including malware, phishing pages, or content depicting child sexual abuse (CSAM). - Sending unsolicited bulk email (spam) or violating anti-spam laws, in violation of our [Anti-Spam Policy](/anti-spam/). - Attempting to gain unauthorized access to any system, or disrupting any network or server. - Cryptocurrency mining, high-frequency proxying, or bandwidth-abusive services. - Hosting content that violates a third party's intellectual property rights. - Hosting content promoting hate speech, targeted harassment, incitement to violence, or terrorism. - Consuming resources in a way that materially degrades service for other customers on shared infrastructure. We may suspend or terminate services that violate this section, with notice where practical. We report suspected CSAM to the National Center for Missing & Exploited Children (NCMEC) as required by 18 U.S.C. § 2258A. ## 6. Copyright and DMCA We respect the intellectual property rights of others and expect our customers to do the same. Our full [DMCA Copyright Policy](/dmca/) explains how to submit a takedown notice, submit a counter-notification, and how we handle repeat infringers. DMCA notices should be sent to our designated agent at [dmca@candorhost.com](mailto:dmca@candorhost.com). ## 7. Your content You retain all rights to the content you host with us. You grant us a limited, non-exclusive license to store, process, and serve your content solely for the purpose of providing the hosting service. You represent that you have the rights necessary to host all content you place on our servers. ## 8. Backups We back up hosted sites daily and retain recent snapshots as described on our website. Backups are provided as a convenience and are not a substitute for keeping your own copies of important data. You are responsible for maintaining independent backups of anything you cannot afford to lose. Backup restoration is available through your client portal. ## 9. Uptime and support We work hard to keep your sites online and publish our status at [status.candorhost.com](https://status.candorhost.com). Our service level commitments and credit process, if any, are described in our [Service Level Agreement](/sla/). Scheduled maintenance will be announced in advance where possible. Support is provided through your client portal during posted hours. ## 10. Suspension and termination You may cancel at any time from your client portal; service continues through the end of your paid term. We may suspend or terminate your account for non-payment, for violations of these Terms or our Acceptable Use Policy, or if required by law. Upon termination, your data will be retained and made available for export as described in our [Cancellation Policy](/cancellation/), then deleted. ## 11. Indemnification You agree to indemnify, defend, and hold harmless R Software & Consulting LLC, its officers, employees, and contractors from and against any and all claims, damages, losses, liabilities, and expenses (including reasonable attorneys' fees) arising out of or related to (a) content you host, transmit, or process using our services, (b) your violation of these Terms or applicable law, (c) your violation of any third party right including intellectual property or privacy rights, and (d) any unauthorized use of your account attributable to your failure to secure your credentials. ## 12. Disclaimers and limitation of liability Services are provided "as is" and "as available." To the fullest extent permitted by law, R Software & Consulting LLC disclaims all warranties, express or implied, including any warranty of merchantability, fitness for a particular purpose, non-infringement, and any warranty arising out of course of dealing or usage of trade. To the fullest extent permitted by law, in no event shall R Software & Consulting LLC be liable for any indirect, incidental, special, consequential, exemplary, or punitive damages, including loss of profits, revenue, data, or business, arising out of or related to these Terms or the services, whether based on contract, tort, negligence, strict liability, or any other legal theory. Our aggregate liability for any claim relating to the services is limited to the greater of (i) the amount you paid us for the service in the three months preceding the claim, or (ii) one hundred U.S. dollars ($100). Some jurisdictions do not allow the exclusion of certain warranties or the limitation of certain damages. To the extent such exclusions or limitations are not permitted, some of the foregoing may not apply to you. ## 13. Force majeure We are not liable for any failure or delay in performance caused by circumstances beyond our reasonable control, including but not limited to acts of God, natural disasters, war, terrorism, civil unrest, government action, labor disputes, upstream network or power provider failures, or the failure of third-party services on which our infrastructure depends. ## 14. Governing law and jurisdiction These Terms and any dispute arising out of them are governed by the laws of the State of Florida, United States, without regard to conflict of law principles. Subject to Section 15, you and Candor Host each agree that any judicial proceeding shall be brought in the state or federal courts located in Duval County, Florida, and each party consents to the exclusive personal jurisdiction and venue of those courts. ## 15. Binding arbitration; class action waiver **Please read this section carefully. It affects your legal rights.** Any dispute, claim, or controversy arising out of or relating to these Terms or the services (a "Dispute") shall be resolved by binding individual arbitration administered by the American Arbitration Association (AAA) under its Commercial Arbitration Rules and its Consumer Arbitration Rules where applicable. The arbitration shall be held in Duval County, Florida, or another mutually agreed location, or conducted by video conference. The arbitrator's decision is binding and may be entered as a judgment in any court of competent jurisdiction. **Class action waiver.** You and Candor Host agree that each may bring claims against the other only in your or its individual capacity and not as a plaintiff or class member in any purported class or representative proceeding. The arbitrator may not consolidate more than one person's claims or preside over any form of a representative or class proceeding. **Exceptions.** Either party may bring an individual action in small claims court, or seek injunctive or equitable relief in a court of competent jurisdiction to protect intellectual property rights, without first proceeding to arbitration. **Opt-out.** You may opt out of this arbitration agreement by sending written notice to [legal@candorhost.com](mailto:legal@candorhost.com) within 30 days of first accepting these Terms. Your opt-out will not affect any other provision of these Terms. ## 16. Changes to these Terms We may update these Terms from time to time. If we make material changes, we will notify you by email or through your client portal at least 30 days before the changes take effect. Continued use of the services after changes take effect constitutes acceptance. If you do not agree to the changes, you may cancel your account and receive a prorated refund of prepaid fees for the unused portion of your term. ## 17. Assignment You may not assign or transfer these Terms without our prior written consent. We may assign these Terms without your consent in connection with a merger, acquisition, or sale of substantially all of our assets, provided that the assignee agrees in writing to be bound by these Terms. ## 18. Miscellaneous If any provision of these Terms is held unenforceable, the remaining provisions will continue in full effect. Our failure to enforce any right or provision of these Terms is not a waiver of that right or provision. These Terms, together with the policies referenced in them, constitute the entire agreement between you and Candor Host regarding the services. ## 19. Contact Questions about these Terms? Email [legal@candorhost.com](mailto:legal@candorhost.com). R Software & Consulting LLC dba Candor Host Jacksonville, Florida --- # Service Level Agreement URL: https://candordeploy.com/sla/ **Last updated: July 9, 2026** This Service Level Agreement ("SLA") describes the availability target Candor Host aims for, how uptime is measured, and what happens if we miss the target. It is incorporated into our [Terms of Service](/terms/) by reference. ## Uptime commitment We commit to **99.9% monthly uptime** for the hosting service. 99.9% is 43 minutes and 12 seconds of allowed downtime in a 30-day month. Anything beyond that qualifies for a service credit, calculated below. ## What counts as downtime Downtime is any minute during which: - Your hosted site returns a 5xx HTTP status code to a properly-authenticated request from the public internet, or - The Candor Host client portal is unreachable, or - The Candor Host mail relay is unable to accept mail for delivery. Downtime is measured from external monitoring points using health checks that we operate and third-party monitors we may reference. We aggregate monthly downtime per service. ## What does not count as downtime - Scheduled maintenance announced at least 48 hours in advance on our [status page](https://status.candorhost.com) or by email. - Emergency maintenance to address security or stability issues. - Downtime caused by your own site's application errors, misconfigurations, plugin conflicts, or resource-limit hits within your plan. - Downtime caused by DNS providers or registrars we do not operate. - Downtime caused by upstream network events outside our reasonable control (major internet route failures, upstream provider outages beyond a reasonable duration). - Downtime caused by force majeure events (see Section 13 of the Terms of Service). - Downtime during the first 30 days of a new customer account, during migration, or on services we label as a preview or early access. - Downtime affecting services or add-ons excluded from the SLA in writing. ## Service credits If we miss the 99.9% target in a calendar month, we will issue a service credit against your next invoice: | Monthly uptime | Service credit (% of monthly fee) | |---|---| | 99.0% – 99.9% | 10% | | 95.0% – 99.0% | 25% | | 90.0% – 95.0% | 50% | | Less than 90.0% | 100% | Service credits are the sole and exclusive remedy for downtime under this SLA and the Terms of Service. ## How to claim a credit To claim a service credit, email [hello@candorhost.com](mailto:hello@candorhost.com) within 30 days of the end of the affected month. Include: - Your account number. - The month for which you are claiming. - Your best estimate of the downtime you experienced. We will review our monitoring data and confirm the credit, typically within 5 business days. ## Preview features and add-ons Preview features and add-ons excluded in writing are not covered by this SLA. ## Changes We may update this SLA from time to time. Material changes take effect at your next renewal. The version in effect when a claim is submitted is the version we apply. ## Contact Questions about the SLA or credit claims: [hello@candorhost.com](mailto:hello@candorhost.com).