buda-base / drs-deposit

Harvard DRS Deposit base
1 stars 0 forks source link

Provide default config for DB facing calls #106

Closed jimk-bdrc closed 2 years ago

jimk-bdrc commented 2 years ago

AO's DB Facing apps require the -d flag to specify the db config file. It impedes deployment. Proviude a default, which the -d flag on the command line will override. Provide a default -d flag for DBApps. Set the default to prod:~/.config/bdrc/db_apps.config

Also, have the app fail gracefully if the config file (default or command line override) does not exist.

jimk-bdrc commented 2 years ago

Installed into pyPI View at: https://pypi.org/project/bdrc-DBAppParser/1.0.4/

Installation: pip install --upgrade bdrc-DBAppParser==1.0.4

It's optional, but you can also re-install bdrc-util from the production pyPI (pip install --upgrade --no-cache-dir bdrc-util) instead of using the test install (the bits are identical)