generated from Patagia/template-nix
Compare commits
1 commit
05d2406853
...
73acf7e19f
Author | SHA1 | Date | |
---|---|---|---|
73acf7e19f |
1 changed files with 4 additions and 0 deletions
4
justfile
4
justfile
|
@ -64,6 +64,10 @@ check-nix:
|
|||
# Run PostgreSQL for development and testing
|
||||
[group('controller')]
|
||||
dev-postgres:
|
||||
#!/usr/bin/env sh
|
||||
if podman ps --filter "name=patagia-postgres" --filter "status=running" -q | grep -q .; then
|
||||
exit 0
|
||||
fi
|
||||
mkdir -p "${XDG_RUNTIME_DIR}/patagia-postgres"
|
||||
podman volume exists patagia-postgres || podman volume create patagia-postgres
|
||||
podman run \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue