When writing the Cron application for gaeutilities I ran into the need to ran two instances, as the dev_appserver can't make a request to itself. All I did was run the second instance on a different port, didn't have to mess with the address. Mind you, it didn't make a lot of requests to the datastore for the purposes I was using it for, but I had no problems with both instances using the same datastore.
On Jan 8, 3:12 pm, boson <dan.kam...@gmail.com> wrote: > These dev_appserver.py params seem important for running multiple > instances: > > --address=ADDRESS, -a ADDRESS > Address to which this server should bind. (Default > localhost). > > --port=PORT, -p PORT > Port for the server to run on. (Default 8080) > > --datastore_path=PATH > Path to use for storing Datastore file stub data. > (Default /var/folders/PP/PP05HWgpEyadqSwuIRPRSU+++TI/-Tmp-/ > dev_appserver.datastore) > > --history_path=PATH > Path to use for storing Datastore history. > (Default /var/folders/PP/PP05HWgpEyadqSwuIRPRSU+++TI/-Tmp-/ > dev_appserver.datastore.history) > > I would expect multiple processes might butt heads when accessing the > same Datastore. And of course you need to put the servers on > different address/port combinations. > > On Jan 8, 11:39 am, Alex Popescu <the.mindstorm.mailingl...@gmail.com> > wrote: > > > I am trying to run 2 dev web servers on my local machine in order to > > test some fetch functionality. Anyways, even if both apps are > > configured to use different ports and they are running in 2 different > > Python processes, this doesn't seem to work. Is this a known > > limitation? Is there any workaround? > > > tia, > > > ./alex --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---