Move command improvements #697
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Finally got to test the command and here are some improvements I would suggest
Add
rmas a shorthand for the commandA low hanging fruit but could be nice since I'm used to
moveandmvto be synonyms.If secrets already exist as part of previously failed move, prompt for keeping them, deleting and replacing them, or aborting
Having to redeploy the app before trying again was enough headache, having to do that one more time because I forgot to clean up secrets was a bit much imo
Check if the user running the command has passwordless sudo enabled, warn them if not
The tar command is not running interactively, either we do that or use some trick to figure out if the user is allowed to run sudo without being prompted for a password and prompt them to do so if not the case
Server renaming
So I was moving the app between ips rather than between domains, I had to change my ssh config and dns records then run server add again on the old server after renaming its directory
Here are the steps for a little clarity:
1- change server's directory name under
~/.abra/serversfromserver.exampletoold.server.example2- add
.ssh/configentries for the new server and update the entry for the old one3- run
abra server add old.server.exampleto update the docker metadata4- run
abra server add server.exampleto add the new server with the old domain#709