GetDKAN / dkan-tools

CLI tools for DKAN site management
https://getdkan.github.io/dkan-tools/
15 stars 14 forks source link

DKTL_MODE and DKTL_PROJECT_DIRECTORY broken #336

Open paul-m opened 2 years ago

paul-m commented 2 years ago

Describe the bug

In support of WCMS-9796, I tried to get dktl to run under ddev.

This was unsuccessful, until I discovered I could use DKTL_MODE=HOST to force dktl to not manage the Docker containers.

However, this also did not work, because the dktl shell script ignores DKTL_PROJECT_DIRECTORY in a few important places.

Steps To Reproduce

Expected behavior

Proposed Resolution

Generally improve dktl so that it can run under vendor/bin/ in a project, and so that it can switch to DKTL_MODE=HOST while honoring DKTL_PROJECT_DIRECTORY.

paul-m commented 2 years ago

PR: https://github.com/GetDKAN/dkan-tools/pull/337