Java Developer

Changing the context name of a Grails application

By default, the context name of your application is the same as the name you supplied when you run "grails create-app". For example:
grails run-app my-project
Will create a project with default context set to my-project.

If in case you want to change it, just open application.properties and change the app.name property

app.grails.version=2.2.2
app.name=new-project-name
app.version=0.1
build.version=0.0.1
cis.version=2.0

Now the context name is set to new-project-name
Tags: context, grails