Open jimallman opened 10 years ago
Regarding default API base URLs, @jar398 suggests:
it might be better if there were no defaults, and presence of a definition was checked at the points where it was needed.
The old system assumes that all APIs are likely on a single server (and that $OPENTREE_NEO4J_HOST
was defined), both of which are questionable assumptions. Instead, individual components should check just before using one of these variables, and complain if it’s not defined.
Some of the deployment scripts have outdated material in them that may lead to confusion or mysterious bugs, based on simple typos in a server-config file. Examples:
It looks like the old
OPENTREE_NEO4J_HOST
variable is expected by thepush.sh
script. If not set explicitly, it's assumed to be $OPENTREE_HOST. Ultimately, this is passed to variable NEO4J_HOST and used in calls tosetup/install-web2py-apps.sh
, where it does... nothing, apparently, beyond appearing in a misleading log message.I also see some places where we set default base URLs for APIs that almost certainly will fail. These should be updated, or we should insist that the server-config file define these base URLs explicitly.