iisnode
iisnode copied to clipboard
Site not served after install
I want to run a React app on a Windows box.
I followed the install instructions for Windows, IIS. Installed prerequisites Installed iisnode Installed sample apps, and verified that they can be accessed from Chrome. Implemented a React app, using create-react-app, verified that it works on the development server. Ran npm build for the react app On the iisnode box, next to the sample apps, created a directory for my app. Copied contents of the npm build directory to the iisnode/myapp directory. Copied the web.config file from the helloworld sample, and updated it to point to my root .js file (service-worker.js)
When I try to access http://localhost/node/myapp/index.html, the tab name changes to "React app" (that matches the manifest), but the page remains empty.
I checked file system permissions. (Not really happy to have IIS_IUSRS have full control to a directory under Program files, but let it be.) I tried to understand what the paragraph about the process.env.PORT means. Understood how the example specifies this listening port, but my minified service-worker.js file doensn't have a createServer() call to modify accordingly.
Any ideas what am I missing, how to make it work?