GAE modules on development server

前端 未结 4 1178
小蘑菇
小蘑菇 2020-12-06 03:26

I\'m using multiple modules with Google AppEngine and was wondering if its possible to run development server (java version) so that ports that are assigned to different mod

4条回答
  •  庸人自扰
    2020-12-06 03:54

    It is possible to set the port of each module using JVM parameters.

    -Dcom.google.appengine.devappserver_module.{module_name}.port=8081
    

    I use the appengine-maven-plugin with the following configuration (my bespoke module is called "analysis"):

    
       com.google.appengine
       appengine-maven-plugin
       
          
             -Ddatastore.backing_store=${project.basedir}/target/local_db.bin
             -Xdebug
             -Dcom.google.appengine.devappserver_module.analysis.port=8081
             -XX:MaxPermSize=512m
             -agentlib:jdwp=transport=dt_socket,address=8001,server=y,suspend=n
          
          JPA
          2
       
    
    

    When I run the mvn appengine:devserver then the logs corresponding to that module are like this:

    [INFO] INFO: Started SelectChannelConnector@127.0.0.1:8081
    [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.JettyContainerService startHotDeployScanner
    [INFO] INFO: Full scan of the web app in place every 2s.
    [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.AbstractModule startup
    [INFO] INFO: Module instance analysis is running at http://localhost:8081/
    [INFO] Jun 10, 2014 10:44:16 AM com.google.appengine.tools.development.AbstractModule startup
    [INFO] INFO: The admin console is running at http://localhost:8081/_ah/admin
    [INFO] Jun 10, 2014 11:44:16 AM com.google.appengine.tools.development.DevAppServerImpl doStart
    [INFO] INFO: Dev App Server is now running
    

    I hope it helped.

提交回复
热议问题