0

I am new to React. I have created a simple React application. I wanted to explore deployment and hosting options for React. I have worked previously in Angular and it can be deployed in IIS. can we do the same for React. Please enlighten me.

2
  • You can. reactjs is just a frontend framework. Certainly, certain technologies work with it better than others. But nothing stops you from deploying reactjs on IIS. Commented Oct 18, 2019 at 4:27
  • Yes it it is with minimum settings as Virtual Directory. Commented Oct 18, 2019 at 4:55

1 Answer 1

1

According to your description, I suggest you could follow below steps to host or publish the application to IIS.

1.Open cmd and locate your react application folder

enter image description here

2.Build the project to production folder.

npm run build

enter image description here

3.Open IIS management console and create a new web sites and use the build path as the physical path. for example: D:\ReactAppTest\my-app\build

Notice: You should pay attention to your port number.

enter image description here

4.Then you could use that port number to access your react application. For example: http://localhost:9965/

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.