@sinnbeck
yeah, your solution is nice that you don't need to touch the db and even nginx, except the config file and you work only with the /var/www/example_com directory and files inside.
Can I ask what your steps were?
Did you, on your production server, create a
- new directory with a new version or date name e.g. 20221224_15_50_example_com and rsync there the current production version of your locally developed website + change the .env and config stuff
- and then in nginx.conf you change the root from /var/www/20221105_23_37_example_com to 20221224_15_50_example_com and do a graceful restart.
Or you did it diffferently? Perhaps to setup somehwat git and use it to upload changes to the production server?
Is there perhaps some tutorial how to do that as easy as possible?
I mean, I will eventually create my own notes of steps what to do to achieve those things with as least amount of steps possible, but it would be nice to read/watch somebody other's notes how to do it.