1

We have developed a ReactJS web application and we want to host this application on IIS. The application successfully runs on IIS. Now, it is time to upgrade the application. Instead of manually copying the files to IIS folder, we want to simplify the deployment process.

How can we deploy the build package that is generated using command npm run build onto IIS web site using WebDeploy protocol?

(Note: IIS has already been configured to accept and successfully executes WebDeploy requests, such as Visual Studio MVC project outputs.)

1 Answer 1

1

It may be difficult to implement it, because web deploy often requires visual studio to package the application, which is different from the direct build of reactJS.

More deployment of ReactJS is to copy to remote IIS after the build is completed.If you insist on using web deploy, first you need to combine it with visual studio, packing the ReactJS after building.Then use powershell to deploy the package onto the remote server. enter image description here

My preferred method is to use Azure DevOps. It is simple and easy to use, especially for the subsequent upgrade and deployment needs of your application. It can be deployed remotely, and it is also very convenient to upgrade and iterate after deployment.

Azure Pipelines

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.