Skip to main content

ravion deploy

Deploy the app in this folder to an App Cluster. ravion-app.yaml says how the app is built, started and served. ravion deploy reads it from the folder or the nearest folder above it in the git repository, or from —file. A folder without one gets one detected from its compose file or Dockerfile, written once you agree (—yes agrees in advance). Every run asks for the App Cluster, listing the clusters of the ravion.yaml project at the repository root first and taking the only one there is without asking, and for the app: one of the cluster’s apps, or a new one named after ravion-app.yaml. Nothing about the choice is written to the folder. Without a terminal, in CI and with —yes or —json, pass —cluster and —app; —new refuses an app that exists. An app’s default branch is the branch of its first deploy. A deploy from any other branch goes to the app’s branch app of that branch, created by its first deploy and served at <app>—<branch>.<domain>, with a disk and a deploy history of its own. —branch deploys as another branch than the one checked out. The deploy uploads the git working tree, tracked files with their uncommitted changes (—include-untracked adds new files .gitignore does not exclude), and a pipeline run builds the app, starts it and serves its ports, while the deploy follows the run and streams its log. Variables that are not committed, such as secrets, go with —env-file and —env. Ctrl-C stops following; the run and the app keep going. Aliases: deploys, deployment, deployments
Examples:
Flags:

ravion deploy cancel

Cancel a deployment
Flags:

ravion deploy continue

Continue a paused deployment
Flags:

ravion deploy create

Create a deployment for a module
Flags:

ravion deploy definition

Get what a deployment applied
Flags:

ravion deploy get

Get Deployment by id
Flags:

ravion deploy list

List Deployments
Flags:

ravion deploy redeploy

Redeploy a deployment
Flags:

ravion deploy resource

Manage deployment resources Aliases: resources

ravion deploy resource get

Get DeploymentResource by id
Flags:

ravion deploy resource list

List DeploymentResources
Flags:

ravion deploy resource operator-command-operation

Get a durable Operator management command
Flags:

ravion deploy resource restart

Restart an EKS workload
Flags:

ravion deploy resource rollback

Roll an EKS workload’s Helm release back
Flags:

ravion deploy rollback

Start a new deployment that replays a previous successful deployment. Choose the target with ravion deploy rollback-candidates <deployment-id>, then use ravion deploy wait <new-deployment-id> —watch with the new deployment ID returned by this command. Requires a deployment ID (mdep_…), not a module instance ID (minst_…). Find deployment IDs with ravion deploy list —module-instance-id <module-instance-id>.
Flags:

ravion deploy rollback-candidates

List past successful deployments eligible for rollback from the same module as the given deployment. Requires a deployment ID (mdep_…), not a module instance ID (minst_…). Find deployment IDs with ravion deploy list —module-instance-id <module-instance-id>.
Flags:

ravion deploy wait

Wait for a deployment to finish, or to reach the status given by —until. Use this instead of polling ravion deploy get in a loop. With —watch the command prints status changes as they happen, then exits when the deployment is done. The command exits non-zero when the deployment fails, is cancelled, or is rolled back.
Examples:
Flags: