SDK root HTML folder

Hello All Just a simple Question (I hope :slight_smile: ) – how do I change the root folder on the SDK from

http://domainname.com:8080/openmrs/login.htm

TO

http://domainname.com/login.htm OR http://domainname.com:8080/login.htm

I gather it must be a tomcat setting ? I am running just a stock standard SDK of OpenMRS v2.6 Thanks in advance Regards

Olie

If you use a docker config generated by SDK to run your server, then it’s pretty simple. You just modify one line in web/Dockerfile COPY openmrs.war /usr/local/tomcat/webapps/openmrs.war to COPY openmrs.war /usr/local/tomcat/webapps/ROOT.war

On the other hand, if you want to run the server with openmrs-sdk:run, it is not supported yet. You’d have to make a pull request to SDK by making the context path a variable e.g. mvn openmrs-sdk:run -DcontextPath=/ and using that variable in https://github.com/openmrs/openmrs-sdk/blob/master/maven-plugin/src/main/java/org/openmrs/maven/plugins/RunTomcat.java#L149 If you’d like to work on that, please create an issue in JIRA first.

My install is of the openmrs-sdk:run variety - its not that big of a priority - thanks for your help