Forbid actions with irrelevant types of Klever deployments
Users can easily forbid types ("development", "production", etc.) of Klever deployments they installed. After all this can cause very unpleasant consequences, e.g. whey somebody will try to update a production instance as a development one. I suggest to forbid corresponding actions.
In principle, deployment scripts can require types of Klever deployments just once during initial installation. All subsequent actions can determine these types automatically on the basis of some data stored during it.
Updated by Ilya Shchepetkov 3 months ago
- Status changed from New to Resolved
feature-10669 branch, but in a slightly different way. Instead of warning user that they are using wrong mode ("production" instead of "development", and vice versa), now deployment scripts automatically determine and use correct mode.
$ klever-deploy-local install production $ klever-deploy-local update production $ klever-deploy-local update production $ klever-deploy-local update development // by accident, wrong! $ klever-deploy-local uninstall production
$ klever-deploy-local install production $ klever-deploy-local update $ klever-deploy-local update $ klever-deploy-local update production // old style commands are still supported $ klever-deploy-local update development // production mode will be used instead $ klever-deploy-local uninstall
If required, it is easy to make scripts to fail with error if incorrect mode is specified, but I don't really think it's necessary.