Magento 2 Tips for Code Deployment
My first compilation of "pro" tips for Magento 2 deployment to a production environment. Actually, it is applicable to any framework, platform, product, whatever else you have to deploy. Please read it very carefully, share it, and always "follow" every time you plan to update servers :).
This is a first set of unique feedback and observations I started to collect while working with Magento 2. In case you have something to add, feel free to email me or write yours in comments.
Pro Tip #1
Pro Tip #2
Pro Tip #3
If you want real "Production is on fire" experience you may also use start removing files and directories on a running production environment. Especially it might be more fun if there is no version control system behind. Simple type "rm -rf" (make sure to have f option - which stands for force) and select a file to delete. Examples of such files might be anything in /etc/ directory or Magento related files which aren't part of GIT.
Disclaimer: All "Pro" tips are examples of practices which should be avoided when deploying to a production environment. It is listed for fun, however you should always remember to automate as much as time allows it.