I'm migrating an app from grails 1.3.6 to 2.0 and I need to change its context root. If I remember correctly, in 1.3.6 I installed the template plugin and changed:
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>/newcontextroot</param-value>
</context-param>
I did the same in 2.0 with no success. Any hints ?
Thanks
You can configure the context in Config.groovy
:
// grails-app/conf/Config.groovy
grails.app.context = '/newcontextroot'
or in application.properties
:
app.context = /newcontextroot
Start your grails application with this command
grails -Dapp.context=/ run-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With