reload command

This commit is contained in:
Ian Ward 2024-12-23 16:50:08 -05:00
parent d9a3540cdf
commit 0ef9c57804

7
bin/reload Executable file
View File

@ -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[^/]*'"'"')'