ReferenceEnv var references
Where Ferry checks a reference
Ferry checks a reference at each step, from the command to the deploy.
Command. The CLI checks the syntax, the kind and the property. A fault stops the command.
1 / 3
Ferry checks at many points. Thus you find a broken reference as early as possible.
The checks
| Where | What Ferry checks | Result |
|---|---|---|
ferry env set, ferry env-group set, --env flags | The syntax, the kind and the property, with no call to the server | The command fails (exit code 2). It saves nothing. |
| The same commands, after the save | The names, against the datastores and services of the server | A warning: warning: X: reference to unknown datastore 'missing'; deploys fail until it resolves. |
Blueprints (fromDatabase, fromService) | The target exists on the server or in the file. It has the correct kind and gives the property. | The apply fails with a 400 before each write. |
| The REST API and the dashboard | Only the size limits. They accept each value. | Ferry checks at the deploy. |
| Deploy, restart, rollback | Each reference | The deploy fails with the status deploy_failed. The instances that run continue to answer. |
See Error messages.