Files
social-media/scripts/recycle-database.sh
Jonathan Bourdon c49f03ec06
Some checks failed
Backend CI/CD / build_and_deploy (push) Has been cancelled
Frontend CI/CD / build_and_deploy (push) Has been cancelled
chore: add script to easy recreating/reseeding the database
2026-05-05 13:22:49 -04:00

13 lines
257 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
CONTAINER="socialize-postgres"
if docker ps -a --format '{{.Names}}' | grep -q "^${CONTAINER}$"; then
docker stop "$CONTAINER"
docker rm "$CONTAINER"
fi
./scripts/start-infrastructure.sh
./scripts/dev-backend.sh