Skip to main content

Before you begin

Install the CLI, authenticate with rig login, and use an isolated test workspace. These examples require the v0.13 CLI. The manifests have been checked with the v0.13 parser; verify application health after deployment. Open the url-shortener source. These manifests explicitly select incremental deployment.

Deploy from your machine

From a terminal on your machine, clone the repository and enter the example directory:
Install runs Django migrations and collectstatic. Migrations affect persistent data; returning to an earlier app release does not undo schema changes.
Record the workspace and app IDs printed by deployment. Use those exact IDs wherever this guide shows WORKSPACE_ID or APP_ID; do not guess a public URL from an app name.

Verify the result

Create a short link and follow it. List parameters, set a valid site_name, then try a value outside the declared validation pattern and confirm an error.

Access and recovery

The web app is public. Treat it as a demonstration; public link creation requires abuse controls before production use. If deployment fails, read the terminal error and installation output before retrying. rig app logs --app APP_ID --install shows install logs when an app exists. Check required credentials, resource limits, the start command, and the configured health path. An image deployment may require explicit root-filesystem replacement consent; do not add --reimage to a workspace containing data you need.

Clean up

After saving any data you need, delete only the isolated example workspace. This deletes its applications and workspace data; inspect persistent volumes and snapshots separately before removing them.
Continue with deployment guides or the manifest reference.