简体   繁体   中英

How to deploy a grails app with a different context path

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM