Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static ports on devserver for multiple modules #989

Open
crazystick opened this issue Oct 15, 2020 · 4 comments
Open

static ports on devserver for multiple modules #989

crazystick opened this issue Oct 15, 2020 · 4 comments

Comments

@crazystick
Copy link

crazystick commented Oct 15, 2020

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.

@loosebazooka
Copy link
Contributor

@saturnism @ludoch any ideas on the devserver config?

@chanseokoh
Copy link
Contributor

chanseokoh commented Nov 23, 2020

Can you try and see if this workaround works? GoogleCloudPlatform/app-maven-plugin#235 (comment) UPDATE: doesn't work with the current version.

@crazystick
Copy link
Author

@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

@loosebazooka
Copy link
Contributor

The current version of this plugin uses the old dev server

@JoeWang1127 JoeWang1127 transferred this issue from GoogleCloudPlatform/app-maven-plugin Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants