fix: no-input app deployment when no tty is present #718
Reference in New Issue
Block a user
No description provided.
Delete Branch "Apfelwurm/abra:feature/noninteractivedeploy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Running
abra app deploy APPNAME -f --no-inputin a non tty environment like Ansible, does not work right now, since bubbletea breaks when it is trying to open the tty:skipping the converge-checks would work, but since bubbletea has support for disabling the render and the input, this solution is cleaner, to make sure the converge checks are running, but not all details are shown dynamically instead.
Nice, thank you!
Didn't test this but assume you have 🙃
One word of warning, if you don't provide
TIMEOUT=...in your app.env, the deploy converge checking will never time out sincev0.11. I guess this might make any ansible logic pretty flaky. It would also be possible to add a--timeout Xflag for this kind of automation. But for now, it's possible by passing it via the.env.fix no-input app deployment when no tty is presentto fix: no-input app deployment when no tty is present