How to deploy a grails app with a different context path

倾然丶 夕夏残阳落幕 提交于 2019-12-12 10:42:00

问题


Where in the grails files can I define a different context path for a grails app to run on Tomcat ? (For instance, the project is called MyApplication, but I want to reference it as /myapp) Thanks


回答1:


If your deploying to production the easiest way is to just rename the war file to myapp.war. You can also add something like the following to your application.properties to ajust the path you go to in order to access your application when using grails run-app

app.context=/myapp


来源:https://stackoverflow.com/questions/2228869/how-to-deploy-a-grails-app-with-a-different-context-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!