How to deploy nest js application on azure ( using Linux )
Deploy NestJs Application on Azure
Today we will learn how to deploy nestjs application on azure portal using github repository and without git repository ( code zip )
1. Create a nestjs application.
you can follow this command for create a new application or you can check the nest js documentation.
npm i -g @nestjs/cli nest new project-name
After create Nest Js application go to the Azure portal.
2. Create App Service ( Microsoft Doc link )
Configure NodeJs on azure portal : Microsoft Azure Doc
- In search section search app services.
- Click Create
- Create a Resource Group ( If you have already resource group you can select it )
- create web app name
- select our publish method ( i have code so i select it )
- select runtime stack and version
- select Linux.
- Region
- create web app name
- select our publish method ( i have code so i select it )
- select runtime stack and version
- select Linux.
- Region
- Fill All Details and click Next: Deployment
- After creating App Service go to Development Center > setting
- Select Source code. In my case i used github. select repository and save.
- go to our github repository > Actions > you can see here Build and deployment
or
You can upload your code without repository. for that
How to upload Zip on azure portal : Microsoft Azure Doc
- create a zip of your code and go to run ISE as administration.
az login2. After login, run this command
az webapp deploy --resource-group <group-name> --name <app-name> --src-path <zip-package-path>this command helps to save our application zip in app services portal.
Post a Comment