I find deployments hard. But why? I conjectured a few reasons why.
- You don't practice setting up deployments too often.
- When you do the setup, you usually mindlessly copypasta the command from internet.
- And you finally make it work without any deep understanding, well you never try to relearn what you've done.
- Deployment is actually a hard subject that touches on many different complex systems.
- When something goes wrong, it's hard to fix or undo. And you might compound the problem by trying to fix it by copypasta-ing even more crap.
- You might not even be aware of the problem at all. You could've done something an hour that fucked up the deployment process, but you might be trying to undo something you did 10 minutes ago. Diagnosis of the problem is really hard for deployment.
What is the remedy for these problem?
- You have to practice deployment like everything else. In order to practice something you need a meticulous guideline on how to practice. There for document everything!
- Understand each steps you are performing. Never just copypasta something. Even better, understand the system you are using.
- Even after you make something work, go back and review what you've just done.
- Learn the system you are using. Again, don't just copypasta.
I find that 5 and 6 are rather hard problems. You need really good understanding of the system in order to debug some problem. Otherwise, you just end up googling same shit over and over again. Maybe I'll come up with some solution for them later down the road.