I’ve made so many mistakes today I don’t know where to begin…
I was trying to apply a simple code fix to my site. I edited the files, committed the changes to the “staging” branch in my repo and deployed to the Digital Ocean staging server. Everything seemed to work.
Then, I ran a deploy to production, which is set to pull from the master branch. Nothing happened because I hadn’t merged the code yet. I went ahead and did this.
There were some other changes in the code that ended up breaking stuff in the site. Important stuff. I don’t know why it broke or what files to look at.
I panicked and tried first to reset my commits and then redeployed (multiple times). Unsuccessfully.
Then I attempted to roll back using Trellis to a release that I knew worked. Unfortunately I didn’t have one in production because it only keeps the last few.
I copied a release folder from staging to production and edited the .env file to match others in the production.
The site is semi-working but I think there are broken symlinks to things like the uploads folder and that is preventing a needed plugin from working.
My developer is away in Europe until next week and my mistakes are affecting all my customers. Is there anyone out there that can help me?