USGS-WiM / StreamStats-Setup

Setup scripts and information for StreamStats
Other
0 stars 0 forks source link

Check host name to determine stateService name in publishMapService.py #5

Open kjacobsen16 opened 3 years ago

kjacobsen16 commented 3 years ago

In some cases (especially with new states), the stream grid and exclude polys are updated frequently. I think we could make the process more user-friendly/safe so we could let the GIS team update it themselves if we add in a step that checks for the host name of the server (e.g. TESTWEB, DEVWEB, etc.) and then adjusts the service name to publish based on that (e.g. if the user calls the script from the DEVWEB server, it should publish "stateServices_dev" instead of "stateServices", etc.).

We could also create a bat file that calls the script and asks which service to publish, rather than expecting users to comment lines in/out.