We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2b895 commit 5dd2f7cCopy full SHA for 5dd2f7c
src/opengeodeweb_viewer/vtkw_server.py
@@ -28,10 +28,6 @@ def add_arguments(parser):
28
"--data_folder_path", default=os.environ.get("DATA_FOLDER_PATH"), help="Path to the folder where data is stored"
29
)
30
31
- # parser.add_argument(
32
- # "--host", default=os.environ.get("DEFAULT_HOST"), help="Host to run on"
33
- # )
34
-
35
@staticmethod
36
def configure(args):
37
# Standard args
@@ -96,6 +92,9 @@ def run_server():
96
92
97
93
_Server.add_arguments(parser)
98
94
args = parser.parse_args()
95
+
+ if "host" in args:
+ args.port = os.environ["DEFAULT_HOST"]
99
if not "port" in args or args.port == 8080:
100
args.port = os.environ.get("DEFAULT_PORT")
101
if "data_folder_path" in args:
0 commit comments