3 ms·
I started doing this anytime I have to do maintenance on systems. I point and call the name of the system and say “test” or “production” and other descriptive w
by lukevp 7y ago
I started doing this anytime I have to do maintenance on systems. I point and call the name of the system and say “test” or “production” and other descriptive words like “web server” or “dmz” or whatever. We’re working on not requiring manual processes for routine deployments (We’ve automated some), but until then, every extra bit of safety we can add is well worth feeling weird for talking to your computer.
- majewsky 7y agoFrom one of my actual bash functions: https://github.com/majewsky/devenv/blob/5ceaf51d0e9ba4c66d8c591004c6978d8a0e77cf/toplevel/profile#L315 https://github.com/majewsky/devenv/blob/5ceaf51d0e9ba4c66d8c... Slightly shortened: if [ "${IS_PROD}" = 1 -a "${COMMAND}" = upgrade -a "${I_KNOW_THIS_IS_PROD:-}" != yes ]; then echo "Not upgrading a productive region without I_KNOW_THIS_IS_PROD=yes." >&2 return 1 fi