Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove app name and port from url in grails?

Instead of deploying my app to

http://localhost:8080/myApp

I want to deploy it to

http://localhost
like image 628
Nandita Avatar asked May 13 '11 09:05

Nandita


2 Answers

To change the run-app port, edit grails-app/conf/BuildConfig.groovy and add the line

grails.server.port.http = 80

To remove the context (the 'myApp' part) edit application.properties and add the line

app.context=/
like image 129
Burt Beckwith Avatar answered Oct 12 '22 09:10

Burt Beckwith


deploy your app to a tomcat server with the war name as ROOT.war. Because war names describe contexts... papa.war will be available through [root_domain]/papa

like image 24
Grooveek Avatar answered Oct 12 '22 08:10

Grooveek