diff --git a/README.md b/README.md index 8026304b..7b16e8eb 100644 --- a/README.md +++ b/README.md @@ -98,6 +98,16 @@ Use this mode if you are making code changes to CKAN and either creating new ext To develop local extensions use the `docker-compose.dev.yml` file with help from the scripts under `bin`: +dev script | description +--- | --- +`bin/ckan …` | exec `ckan` cli within the ckan-dev container +`bin/compose …` | dev docker compose commands +`bin/generate_extension` | generate extension in `src` directory +`bin/install_src` | install all extensions from `src` directory (ckan-dev does not need to be running) +`bin/reload` | reload ckan within the ckan-dev container without restarting +`bin/restart` | shut down and restart the whole ckan-dev container (loads new values from .env) +`bin/shell` | exec bash prompt within the ckan-dev container + To build the images: bin/compose build diff --git a/bin/reload b/bin/reload new file mode 100755 index 00000000..4cc066c6 --- /dev/null +++ b/bin/reload @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e +ROOT="$(dirname ${BASH_SOURCE[0]})/.." + +docker compose -f "${ROOT}/docker-compose.dev.yml" exec ckan-dev \ + bash -c 'kill $(ls -l /proc/*/exe | grep bin/python | grep -Po '"'"'/proc/\K[^/]*'"'"')'