Grail run-app | Grails run-app change default port | Grail run app locally



You need to run app in grails before deploying it on your web application. Luckily, grails support them.

Simply you do follows:

1. Go to your grails directory
2. Use "grails run-app" command
3. If you want to change default port of grails run-app 8080. How to? Use command:  grails -Dserver.port=9001 run-app


Run the grails run-app command.
The grails run-app command starts the Enterprise Server in the background and runs the application in one step. You don't need to create a WAR file or deploy your application.
To test your application, point your browser to http://host:port/app-dir-name.
For example, point to http://localhost:8080/helloworld. You should see a screen that begins, “Welcome to Grails.” Selecting the HelloController link should change the display to, “Hello World!”
Link reference: https://docs.oracle.com/cd/E19776-01/820-4496/ghflk/index.html

 Thank you for reading this article, please a comment if you are interested.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment