Grails: How to run several applications in development?

I have two Grails applications developed at the same time when you need to communicate with each other.

How can I run both of them using grails run-app? If the server is already running and trying to start the second application, I get:

Server failed to start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind

+3
source share
2 answers

You can set

grails.server.port.http

In BuildConfig.groovy one of the applications for something other than the default value of 8080

How do they communicate? Do they need to manage the same Tomcat? If so, you will not be able to use run-app, since a new tomcat instance will be launched each time.

amuses

Lee

+6
source

,

grails -Dserver.port=8082 run-app
+2

Source: https://habr.com/ru/post/1753620/


All Articles