Docs / Sarpius Launch

Sarpius Launch

Sarpius Launch is the deploy engine underneath a Sarpius Project. You connect a git repository, Sarpius Launch detects the framework, builds it in a sandboxed Docker container, and runs it on a subdomain. Every push to the tracked branch triggers a fresh build and deploy, and you can redeploy, roll back, scope env-vars per environment, and manage domains without leaving the workspace.

What Sarpius Launch does

Sarpius Launch turns a git repository into a running application. It is the provisioning engine behind each Component of a Project: connect a repo, and the platform detects how to build and run it, provisions a container, and exposes it on an auto-generated subdomain. From then on, a push to the tracked branch redeploys it automatically.

The work is split across two internal pieces so it scales and fails independently: the PHP back-end handles connecting repositories, probing frameworks, and orchestrating the wizard, while an internal build worker runs the actual Docker-sandboxed builds and provisions the container. You never interact with these directly; you drive everything from the Project workspace or the Sarpius Launch console.

  • Provider-agnostic git: GitHub, GitLab, Gitea, Bitbucket, and generic git hosts over HTTPS or SSH.
  • Framework detection: the wizard probes the selected branch and pre-fills the runtime, framework, and detected env-vars.
  • Sandboxed builds: every build runs in an isolated Docker container, so build steps cannot touch other tenants.
  • Push-to-deploy: a webhook on your repository triggers a build and deploy on every push to the tracked branch.
  • Redeploys and rollbacks: rebuild, apply env-only changes, or roll back to a previous successful deployment.

Connect a repository

The connect wizard is three steps. The first step is where the magic happens: as soon as you paste a repository URL, Sarpius Launch probes it to discover branches, detect the framework, and pre-select a runtime. You usually only confirm what it found.

  1. Name the app and paste the repository URL. Sarpius Launch probes it and lists the available branches; pick the branch you want to track.
  2. Confirm the runtime. The detected runtime and framework appear on the left as an auto-detected card; the right column lets you override to static, Node.js, PHP, Java, Python, or Go.
  3. Review environment variables. The wizard pre-fills any detected variables (for example from a committed .env.example) and lets you add more or import a .env file.
  4. Review the summary and create. The app is provisioned, the first build runs, and a push webhook is registered on your repository automatically.
Note

For a private repository, Sarpius Launch uses a credential from your profile. If the URL is HTTPS it looks for a saved personal access token (PAT) for that host; if the URL is SSH it uses your saved SSH key. When you have both, you can choose. You can also paste a token once during the wizard and save it to your profile for reuse.

Heads up

Do not commit a real .env into your repository. If Sarpius Launch detects one during the probe it warns you: committed secrets are visible to anyone with repo access. Set them as env-vars in Sarpius Launch instead.

The build and deploy pipeline

A deployment moves through a few states you can watch live in the Overview and Deployments views: queued, building, then live (or failed). The build runs inside a Docker sandbox using the install, build, and start commands inferred from your framework, which you can override in Settings.

Once you have connected the repository, deploys are hands-off. Every push to the tracked branch delivers a webhook, which enqueues a new build. Deployments triggered this way are tagged as webhook-triggered so you can tell an auto-deploy from a manual one.

Note

If the auto-webhook registration ever fails (for example the token lacks scope), the app still deploys, but pushes will not trigger new builds until you re-register the webhook from the Settings tab. Sarpius also self-heals the webhook when you open the app.

text
git push origin main
  -> webhook delivered to Sarpius Launch
  -> deployment queued
  -> sandboxed Docker build (install -> build)
  -> container starts, health check passes
  -> live on your subdomain

Runtimes and build configuration

Sarpius Launch supports six runtimes. Detection usually picks the right one, but you can override it, and you can fine-tune the build commands per app in the Settings tab.

  • static: a pre-built site or the build output of a framework like Vite, Svelte, React, or Next.js exported statically. Static apps have no runtime process and no PORT.
  • nodejs: any Node.js app or framework build.
  • php: PHP apps, including Laravel and WordPress.
  • java: Maven or Gradle projects.
  • python: Python apps.
  • go: Go apps.

The Settings tab exposes the build knobs so you can correct a bad guess: install command, build command, output directory (for static builds), start command, and the Node.js or PHP version. If a deploy builds green but serves the wrong thing, or the server starts with the wrong entry file, these are the fields to adjust.

Note

Worker-style apps (for example a Discord or chat bot) are detected as a worker: they have no HTTP route and no PORT. They run as a long-lived process rather than being exposed on a subdomain.

Environment variables

Environment variables in Sarpius Launch carry a scope so the worker injects them at the right stage of the lifecycle. This avoids leaking build-time secrets into the running container and vice versa.

  • build: injected only during the build (for example a token needed to install private packages).
  • runtime: injected only into the running container, not the build.
  • both: injected during build and at runtime.

Variables are also per-environment, so a value set for one environment does not bleed into another. You can add variables one at a time or import a .env file, which merges its keys into the current set. Applying env-var changes triggers an env-only redeploy that restarts the container with the new values without a full rebuild.

Note

When you link a managed Sarpius DB database to an app, Sarpius Launch injects the connection env-vars for you and records exactly which keys it wrote. Unlinking removes only those keys, never variables you set yourself.

The variables are written asynchronously, within moments of the link, not inside the request that created it. Right after linking, the Environment tab can still be empty for a short while, and the app only sees the new values once the env-only redeploy that follows has finished.

Linking Redis sets REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, and REDIS_PASS (the last two carry the same password, so code written for either name works).

Common tasks

Everything after the first deploy lives in the app instance view, organized into tabs: Overview, Deployments, Logs, Environment, Databases, Schedules, Scaling, Security, and Settings.

  • Redeploy: re-run the pipeline against the latest commit. A cached redeploy reuses build layers where possible for a faster turnaround.
  • Roll back: promote a previous successful deployment back to live from the Deployments tab when a new build misbehaves.
  • Run migrations: for framework apps, run database migrations on demand in an ephemeral sandbox with zero downtime, separate from the serving container.
  • Read logs: stream build and runtime logs live from the Logs tab.
  • Adjust scaling: change the container resources for the app from the Scaling tab (this affects per-minute billing).
  • Lock it down: set HTTP basic-auth or an IP allow/deny policy for the whole app or a single Component from the Security tab; it is enforced at the Sarpius Router edge.

Scheduled jobs (cron)

A schedule runs a shell command on a recurring cron expression. It belongs to one Component (app), because it needs exactly that Component's build output, runtime, and environment variables. Create schedules in the Component's Schedules tab, through the REST API, or from an AI assistant over MCP (see Connect via MCP).

  • Cron expression: five fields (minute, hour, day of month, month, day of week), for example 0 3 * * *. The Schedules tab previews the next five run times before you save.
  • Timezone: the expression is evaluated in the timezone you choose for the schedule (UTC by default), not in a server timezone, so daylight saving changes do not shift your jobs.
  • Timeout: a run is stopped after the timeout you set, between 10 and 3600 seconds.
  • Limits: a Component can have up to 20 schedules, a name is at most 120 characters and a command at most 4000.
  • Run now: trigger a schedule once, outside its rhythm. A disabled schedule refuses it, so enable it first.
  • Automatic disable: a schedule that fails ten runs in a row is switched off, and so is one whose cron expression the worker cannot parse. Fix the cause, then enable it again.
  • Skipped runs: a run that is more than about five minutes late (for example after a worker restart) is recorded as skipped instead of caught up, and the schedule continues from the next slot. A schedule bound to an environment that is being deleted or no longer exists is skipped as well.

The command does not run inside your live container. Each run starts in a separate, isolated sandbox, unpacked from the build output of the latest successful deployment, with the Component's environment variables. The same variables are also written as a .env file in the working directory, because tools such as the frmwrk CLI read that file; the run log says how many variables were written, never their values. Files your running app wrote while it was serving, such as uploads or a local database, are not visible to the command. Keep anything a job must share with the running app in a database or bucket.

Heads up

PHP frameworks whose dependencies are installed by the container at start (frmwrk, Laravel) have no vendor/ directory in the build output. The job command must install dependencies first, for example: composer install --no-dev -q --no-interaction && php commander followup:run

text
composer install --no-dev -q --no-interaction && php commander followup:run
Note

Billing is per second of wall-clock time from the moment the run is claimed until it finishes, and that includes sandbox startup. For PHP components the first run for a given set of PHP extensions compiles them from source and can take around three minutes; the platform then builds a reusable image in the background, so later runs start much faster and are billed for their real duration. A schedule that fires every minute still adds up. If a previous run of the same schedule is still going when the next one is due, the new run is skipped rather than started in parallel.

Changing the command needs a permission of its own, because the platform runs it verbatim with your decrypted environment. For OAuth and MCP tokens that is the scope apps:build_commands:write, which apps:write does not include. Toggling, renaming, changing the cron expression or timezone, deleting, and running now only need apps:write.

Files that survive a redeploy

A redeploy replaces the application directory with a fresh copy of the new build. Anything your running app wrote to disk is lost unless its path is preserved. Preserved paths are moved aside before the deploy and put back on top of the new files afterwards, and the preserved copy wins over whatever the repository ships at that path.

To keep your own paths, create .synthlaunch/preserve.txt in the repository root and list one relative path per line. Lines starting with # are comments. Absolute paths, paths containing .. and the repository root itself are ignored.

text
# .synthlaunch/preserve.txt
storage/uploads
data/cache

Some paths are preserved automatically, with no file needed:

  • frmwrk: storage/keys (the application keypair).
  • Laravel: storage/app, storage/framework/sessions, storage/framework/cache and storage/logs.
  • WordPress: wp-content/uploads.
  • PocketBase: pb_data.
  • PHP, Laravel and WordPress: public.key and private.key.
Heads up

Upload directories such as storage/uploads are not preserved automatically. List them in .synthlaunch/preserve.txt, or the files are gone after the next redeploy.

Note

Preserved files live on one container, so an app with automatically preserved paths (for example a Laravel app) is held at one replica and cannot be scaled out. A frmwrk app is held at one replica unless its latest deployment wrote a non-empty APP_RSA_PRIVATE_KEY runtime variable: with the key in the environment every replica shares it, and nothing on disk needs to be preserved. Paths you list only in .synthlaunch/preserve.txt are preserved the same way, but do not hold the app at one replica by themselves, so do not scale such an app out while it keeps state in them: each replica would get its own diverging copy.

Subdomains, custom domains, and TLS

Each app gets an auto-generated subdomain of the form adjective-noun-tail, where the four-character tail keeps it unique. Routing and TLS are handled by Sarpius Router, the edge reverse proxy that sits in front of every Sarpius Launch app.

To serve on your own domain, add a custom domain and point its DNS at the platform. Sarpius Router issues a TLS certificate for it automatically over ACME. See the Custom domains guide for the exact DNS records and verification flow.

Note

A custom domain belongs to the app that serves it. Deleting the app (or the Project) removes its routing and revokes its certificate. Your external DNS record is yours to remove; the platform cannot delete records in your DNS provider.

Limits and notes

  • Billing is per-minute on the running container; scaling up resources increases the rate. Static apps are billed on storage only, since they have no running process.
  • Builds run in an isolated Docker sandbox with no access to other tenants and no persistent build state beyond the layer cache.
  • A deploy that fails leaves the previous live deployment serving; you never lose the running version to a broken build.
  • Sarpius Launch is the engine, not the surface: prefer the Project workspace, where deploy, env-vars, databases, routing, and usage all live inline. The standalone Sarpius Launch console is the Advanced surface for power users.

Sarpius is a trading name of Synthwave-technologies.nl · KvK 73239038 · VAT NL002410192B67 · Apeldoorn, the Netherlands

(c) 2026 Sarpius. All rights reserved.

Hosted in the EU