create-react-app on IIS 10

前端 未结 1 654
后悔当初
后悔当初 2021-01-04 05:32

I\'ve scoured the web searching for a solution on how to deploy a React App on Microsoft\'s IIS.

I have successfully managed to deploy multiple Node.JS Applications

相关标签:
1条回答
  • 2021-01-04 06:17

    I just tried this and it worked:

    create-react-app myapp

    yarn (or npm) build

    • Open IIS manager and create a new website
    • Point it at your build folder in the newly created react project
    • Create a new application pool
    • Right click on the app pool and under Process model find Identity, click the three dots
    • Select custom and enter your windows credentials.

    If this doesnt work you may need to enable read/write access to the files so right click on the website and select edit permissions

    • Go to Security and hit edit, select Authenticated Users and on the bottom of the dialog check the modify/full control /read/write boxes where applicable. Do the same for your windows user that should be listed under Groups or user names section. Hit apply/save.

    • Right click the website and go to Manage Website then browse.

    Boom.

    0 讨论(0)
提交回复
热议问题