ShipHosted apps

Hosted apps

Run your app on CodePinion: how it is built, extra processes, rollbacks, and every tab on the app page.

Guide2 min read

A hosted app runs a repository's code on CodePinion, at its own address under codepinionapps.co.ke or on your own domain. Create one from the repository's Hosted Apps tab with New hosted app.

A repository's Hosted Apps tab.

How it is built

Build strategyUses
Auto-detectYour Dockerfile if the repository has one, otherwise a buildpack.
DockerfileThe Dockerfile in the repository.
BuildpackNixpacks: detects your language and builds without a Dockerfile.
Prebuilt imageAn image you built elsewhere; CodePinion only runs it.

Click Deploy (or Redeploy) on the app, or deploy from a pipeline with deploy_app: so it only ships after the tests pass; see CI/CD pipelines.

The app page

TabFor
OverviewState, address and the latest deploy.
MetricsRequests, response codes and resource use.
DeploymentsEvery deploy and its build log. Roll back to an earlier one from here.
LogsThe access log and the app's own output. See Logs and errors.
Live ConsoleErrors and warnings picked out of the live logs, each one a click away from a task.
TerminalA shell inside the running app.
ProcessesExtra processes beside the web process.
VariablesEnvironment variables. See Secrets and variables.
DatabaseAdd-ons attached to this app. See Add-ons.
DomainsCustom domains.
SettingsBuild strategy and the app's other settings.

Workers and schedulers

Add processes under Processes for work that is not a web server:

  • a Worker runs continuously, such as a queue consumer;
  • a Scheduler runs scheduled jobs, such as Celery beat. It always runs exactly one copy, so a job never fires twice.

Rolling back

Open Deployments and roll back to an earlier successful deploy.

Limits

Your plan includes a number of hosted apps, and more can be added for a monthly fee; see Pricing (requires sign-in).