Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions infrastructure/clear-all-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ docker run --rm --network=$NETWORK \
-e POSTGRES_DB="${POSTGRES_DB}" \
-e EVENTS_MIGRATOR_ROLE="${EVENTS_MIGRATOR_ROLE}" \
-e EVENTS_APP_ROLE="${EVENTS_APP_ROLE}" \
-e ANALYTICS_POSTGRES_USER="${ANALYTICS_POSTGRES_USER}" \
-e ANALYTICS_POSTGRES_ROLE="${ANALYTICS_POSTGRES_ROLE}" \
-e ANALYTICS_POSTGRES_DB="${ANALYTICS_POSTGRES_DB}" \
postgres:17.6 bash -c '
psql -h postgres -U "$POSTGRES_USER" -d postgres -v ON_ERROR_STOP=1 <<EOF
Expand All @@ -157,12 +157,4 @@ echo "🚀 Reinitializing Postgres with on-deploy.sh..."

docker service update --force opencrvs_postgres-on-update

docker service scale opencrvs_dashboards=0
docker service scale opencrvs_dashboards=1

# Restart events service
#-----------------------------
docker service scale opencrvs_events=0
docker service scale opencrvs_events=1

echo "✅ All data cleared."
Loading