appengine-plugins icon indicating copy to clipboard operation
appengine-plugins copied to clipboard

static ports on devserver for multiple modules

Open crazystick opened this issue 5 years ago • 4 comments

I think I already know the answer based on GoogleCloudPlatform/app-maven-plugin#330 and GoogleCloudPlatform/app-maven-plugin#435 but I want to know if anyone has a workaround for this. I've just migrated to the new tooling (was painful, documentation is not good) and I have this problem.

We use an nginx reverse proxy configuration to replace what the dispatch configuration does in production. It used to work great but now all the modules except the default run on random ports.

~In addition, setting devserver.host to 0.0.0.0 doesn't seem to make the server listen on all the interfaces.~ Setting devserver.host only works if you put it in the parent POM, defining it in services is ignored

Hoping someone has a workaround for this, as it feels like a big step backwards.

crazystick avatar Oct 15 '20 23:10 crazystick

@saturnism @ludoch any ideas on the devserver config?

loosebazooka avatar Oct 16 '20 00:10 loosebazooka

~~Can you try and see if this workaround works? https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/235#issuecomment-356014144~~ UPDATE: doesn't work with the current version.

chanseokoh avatar Nov 23 '20 15:11 chanseokoh

@chanseokoh yes that used to work with the old devserver, but doesn't seem to work with the new version based on the Cloud SDK

crazystick avatar Nov 24 '20 11:11 crazystick

The current version of this plugin uses the old dev server

loosebazooka avatar Nov 24 '20 16:11 loosebazooka