GoogleCloudPlatform / appengine-modules-sample-java

App Engine Modules usage, packaged as an EAR (Entreprise Archive) Maven project
Apache License 2.0
61 stars 36 forks source link

Each module on its own port #7

Open gapipro opened 10 years ago

gapipro commented 10 years ago

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.

mpoehler commented 10 years ago

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

crazybob commented 8 years ago

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>