Core Concepts
Reference
How-to Guides
Troubleshooting
Aptible Metadata Variables
Aptible injects the following metadata keys as environment variables:
APTIBLE_PROCESS_TYPE
web: bundle exec rails s
worker: bundle exec sidekiq
- Then, the containers for the web Service will run with APTIBLE_PROCESS_TYPE=web, and the containers for the worker Service will run with APTIBLE_PROCESS_TYPE=worker.
- If there is no Procfile and users choose to use an Implicit Service instead, the variable is set to APTIBLE_PROCESS_TYPE=cmd.
APTIBLE_PROCESS_INDEX
APTIBLE_CONTAINER_SIZE
- This variable represents the memory limit in MB of the Container. See Memory Limits for more information.
APTIBLE_LAYER
APTIBLE_GIT_REF
- App Containers using Dockerfile Deploy or Companion Git Repository store the git SHA used when deploying containers in this variable.
APTIBLE_ORGANIZATION_HREF
- Aptible API URL representing the Organization this container belongs to.
APTIBLE_APP_HREF
- Aptible API URL representing the App this container belongs to, if any.
APTIBLE_DATABASE_HREF
- Aptible API URL representing the Database this container belongs to, if any.
APTIBLE_SERVICE_HREF
- Aptible API URL representing the Service this container belongs to, if any.
APTIBLE_RELEASE_HREF
- Aptible API URL representing the Release this container belongs to, if any.
APTIBLE_EPHEMERAL_SESSION_HREF
- Aptible API URL representing the current Ephemeral SSH Sessions this container belongs to, if any.
APTIBLE_RESOURCE_HREF
- Aptible uses this variable internally. Do not depend on this value.
APTIBLE_ALLOCATION
- Aptible uses this variable internally. Do not depend on this value.