appengine-modules-sample-java icon indicating copy to clipboard operation
appengine-modules-sample-java copied to clipboard

Each module on its own port

Open gapipro opened this issue 10 years ago • 2 comments

Hi,

is it possible to specify a port number to each module?

For now I have managed to set port for default module, the other one gets a random port.

gapipro avatar Jun 10 '14 06:06 gapipro

Hi gapipro,

you can use -Dcom.google.appengine.devappserver_module.MODULENAME.port=8099 to configure the port for each module. We should add that to the example.

cheers,

marco

mpoehler avatar Jun 11 '14 07:06 mpoehler

You can also set this system property in your appengine-web.xml file. For example:

<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <module>MY_MODULE</module>
    <version>v1</version>
    <threadsafe>true</threadsafe>
    <system-properties>
        <property name="com.google.appengine.devappserver_module.MY_MODULE.port"
            value="8081"/>
    </system-properties>
</appengine-web-app>

crazybob avatar May 03 '16 18:05 crazybob