Azure App Service Multi-language / availability / automatic scaling of Web hosting services (1)

Knowledge bird language: https://www.yuque.com/seanyu/azure/appservice

No public: Cloud computing actual combat

 

 

 

Overview

 

1. Web hosting applications used, and the movable backend RESTful API;

2.Paas product, without user management infrastructure;

3. Automatic scaling, high availability;

4. The back-end system supports Windows and Linux;

5. Support GitHub, Azure DevOps, Git repository for automatic deployment;

6. Multi-language: .NET, Node.js, PHP, Java, Python (Linux), HTML, etc.

7.SLA 99.95%

 

Product integration with Azure

1. custom domain name;

2.SSL protection;

3.CDN support;

 

 

Case I deploy Node.js Site

1. Download and install Node.js

2. Prepare Node.js test site

 

Use npm tool npx run the following command directly:

 

npx express-generator myExpressApp --view pug --git

image.png

Then execute:

cd myExpressAppnpm install

 

image.png

 

Elevation start

 

Open a browser and navigate to  HTTP: // localhost: 3000 , which should be something like this will show

 

image.png

 

3. Prepare the development environment Visual Studio Code

 

Code Studio download and install Visual: https://code.visualstudio.com/

Download extensions:

image.png

 

Azure is set to expand in China Azure (If you are using Internet century version, you need this step):

image.png

 

Azure account login:

image.png

 

4. Create a Web App in Azure

image.png

 

image.png

 

image.png

 

 

5. Release Node.js website to Azure Web App

Open VS CODE, open the Node.js project site

image.png

 

输入  (CTRL + SHIFT + P) 进行部署,方法是键入“deploy to web app”并运行“Azure App Service: Deploy to Web App”命令。

image.png

 

image.png

 

image.png

 

image.png

 

image.png

 

点击Browse Website 查看网站。


Guess you like

Origin blog.51cto.com/10117438/2470195