0👍
This is a very open-ended question.
-
I would definitely advise against
git pull
for many reasons.. i.e, pulling unwanted code into a production environment. There are many CI/CD services, ie AWS codedeploy, to automate this process. -
Rollback can also be automated at CI/CD level, many services allow you to pick a deployed revision to roll back, and/or redeploy a new revision from a previous git commit.
-
I have not seen this type of deployment just yet.. You have the right idea, I would recommend you to check out Docker and Docker Compose
Source:stackexchange.com