Deployments Azure ReactJS

Before start

VSTS vs Kudu deployments

Kudu

General steps: Create an App Service. Wait till it’s implemented, then go to the Deployment Center and configure your Repo with the Kudu path.

Azure Deployment Center

Kudu/SCM console portal: To access Kudu/SCM console portal navigate to http://MYAPPSERVICE.scm.azurewebsites.net. For more information check this link

ReactJS

Azure deployment compatible with create-react-app.

  1. Add “engines”: {“node”: “^10.14.1”} to the package.json (to see all available Node versions check Deployment Center logs after finishing all these steps).

  2. Create a file on the project’s root folder called .deployment with the following content:

    [config]
    command = azure/deploy.cmd
    
  3. Create a folder called azure and create a filed called deploy.cmd with this content.

  4. Also, create a file called web.config with this content.

  5. Your CI build is ready just Commit and Push your changes.


Equilaterus (CC-BY) 2018 - 2019.