Allow the server to bind to a non-default port
Sometimes we need to run more than a single Snowplow Micro instance.
Here is an example where we want to run a modified Snowplow Micro in parallel to the GDK Snowplow: gitlab!132775 (merged)
To avoid having to update the port number in ./snowplow-micro.sh
to something other then 9090 I would like to propose this change.
Steps to validate
- Start server on default port
./snowplow-micro.sh
. - This will fail with this error
Bind for 0.0.0.0:9090 failed: port is already allocated.
if you're already running Snowplow Micro on port 9090. - Start server on another port
./snowplow-micro.sh -p 9123
. - Check that Snowplow Micro is available at http://localhost:9123/micro/all
Edited by Jonas Larsen