GAE application with multiple services:
module_1 - default
module_2 - backend using datastore
module_3 - Taskqueues and cron job
module_2
is added as dependency in module_3
and using same datastore
instance used in module_2
. All modules (1, 2, 3 and datastore) are in different virtual machine deployed in test and production.
Same code I am deploying in local development machine, using command
gradle appengineRun
all three modules
<project_home>/module_<1/2/3>$ gradle appengineRun
, all project creating own datastore and taskqueues.
Have tried following:
<?xml version="1.0" encoding="UTF-8"?>
<dispatch-entries>
<dispatch>
<!-- Default module serves the typical web resources and all static resources. -->
<url>*/favicon.ico</url>
<module>module_1</module>
</dispatch>
<dispatch>
<!-- Default module serves simple hostname request. -->
<url>simple-sample.appspot.com/</url>
<module>module_1</module>
</dispatch>
<dispatch>
<!-- Send all mobile traffic to the mobile frontend. -->
<url>*/v2/*</url>
<module>module_2</module>
</dispatch>
<dispatch>
<!-- Send all work to the one static backend. -->
<url>*/v3/*</url>
<module>module_3</module>
</dispatch>
</dispatch-entries>
- Converting backend to services: Have not tried this, this would require lot of refactor, like movie
cron.xml
andqueue.xml
frommodule_3
tomodule_1
. As this system working with same configuration in stage and production, there must be way to make it work in local.