Variables, secrets and jobs
Environment variables and secrets
Section titled “Environment variables and secrets”- Open your app and go to Settings → Environment variables.
- Click Add variable, enter the name and value, and tick Encrypt for passwords, keys and tokens. Encrypted values are never shown again, only replaced.
- Click Save. The app is deployed again with the new values.
To add many at once, click Bulk edit, paste plain variables one per line (like a .env file) and click Use these. Names that look like secrets are encrypted automatically.
App-level variables reach every component; a component’s own variable with the same name wins. Every service also gets its port in the PORT variable.
Download app spec (under Settings → App spec) gives you the app’s settings as JSON, without the encrypted values.
A job runs a command around a deployment, for example database migrations. Add one under Settings → Components with Add component, choose a job and pick When it runs:
- Before each deployment: if it fails, the new version isn’t released.
- After each deployment.
- After a failed deployment.
How many jobs you can have depends on your plan.
AirLift has no scheduled (cron) jobs. For tasks on a timer, use a Managed VM.
