{"id":2714,"date":"2011-02-01T19:24:03","date_gmt":"2011-02-01T13:54:03","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=2714"},"modified":"2016-12-19T15:06:12","modified_gmt":"2016-12-19T09:36:12","slug":"how-to-set-default-port-for-grails-application","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/how-to-set-default-port-for-grails-application\/","title":{"rendered":"How to set default port for grails application"},"content":{"rendered":"<p>As we all know the default port for grails application is 8080, though we can change the port by running the application by following command<br \/>\n[java]<br \/>\ngrails -Dserver.port=7070 run-app<br \/>\n[\/java]<\/p>\n<p>What if you want the application to run on 7070 by default. Grails provide a very easy way to that as well. You just need to write the following lines in you buildConfig.groovy file<br \/>\n[java]<br \/>\ngrails.server.port.http=7070<br \/>\n[\/java]<\/p>\n<p>And you are done. Now your application will run on 7070 by default, you dont need to provide the port again and again.<br \/>\n<\/p>\n<p>Hope it helps<br \/>\n<a href=\"http:\/\/www.tothenew.com\/blog\/author\/uday\/\">Uday Pratap Singh<\/a><br \/>\n<a href=\"mailto:uday@intelligrape.com\">uday@intelligrape.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we all know the default port for grails application is 8080, though we can change the port by running the application by following command [java] grails -Dserver.port=7070 run-app [\/java] What if you want the application to run on 7070 by default. Grails provide a very easy way to that as well. You just need [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":12},"categories":[7],"tags":[509,507,508],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/2714"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=2714"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/2714\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=2714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=2714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=2714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}