Deploying O3 to IIS

Hi, I’ve been trying to setup the 03 frontend on my windows virtual machine. I was able to get the backend running thankfully but I can’t seem to get the frontend to work.

I used npx openmrs build and npx openmrs assemble to setup a distribution and when I try to host it on IIS, I get a blank page.

Has anyone come across this? Any help would be greatly appreciated

1 Like

If you have the backend running, the easiest thing to do would be to use module-spa to serve the frontend from the frontend subfolder of your OpenMRS Data directory.

If you really need to use IIS, you’re a bit on your own, though our nginx config and this one may be useful reference. As long as IIS serves index.html for a directory, it should somewhat work, though I think we rely on the fact that / gets redirected to /home (or more usually that /openmrs/spa/ becomes /openmrs/spa/home which may explain things…

1 Like

@jolaoso If you do need to use IIS: Would you mind sharing the reason? Curious to understand more :slight_smile:

No particular reason, really. I’m already using it for other apps and thought I’d just use it for this

Thank you! Will try that out

1 Like