I've added support to pickup configuration from the environment.
BOLTDBWEB_DB_NAME
BOLTDBWEB_PORT
BOLTDBWEB_STATIC_PATH
Also added an explicit -help option. Added short args in addition to the long ones. Change os exit codes to 1 if errors happen before the web service starts.
Finally added a comment at the top of boltdbweb.go file so I could remember where this came from. You probably want to put something else there that makes more sense.
I've added support to pickup configuration from the environment.
Also added an explicit -help option. Added short args in addition to the long ones. Change os exit codes to 1 if errors happen before the web service starts.
Finally added a comment at the top of boltdbweb.go file so I could remember where this came from. You probably want to put something else there that makes more sense.
All the best,
Robert.