How To Deploy React Application On IIS Server

Hello Guys,

Today we are going to learn that, How to Publish/Deploy React App on IIS Server.

  1. First of all, run the below command in your project terminal.
    npm run-script build
  2. After that, go to your root directory of the project and find the build labeled folder.
  3. This is your published files folder for the server.
  4. You just need to copy it and past it to your bound IIS website directory.
  5. Or else you can create a new website.
  6. Here is my guide to hosting website on IIS: https://www.thecodehubs.com/how-to-host-net-website-in-iis-with-ssl-certificate/
  7. you can ignore the SSL step in the above link.

That’s it you can check your website in the browser using the hosted port.

You can check my other blogs here

 

 

Submit a Comment

Your email address will not be published. Required fields are marked *

Footer Logo

Subscribe

Select Categories