Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 633
xain Avatar asked Feb 09 '10 12:02

xain


1 Answers

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
like image 66
Jared Avatar answered Nov 08 '22 20:11

Jared