Deployment of a MEAN app


I wanted to know how a web app is deployed on cloud. If I develop a MEAN app what will be the steps for it? Does it depend on the app stack or it can be deployed on any platform like AWS or Azure?

Also, how the architecture is set up? I have seen there will be backup servers for each service. How does that work?