Files
eamco_deploy/add_towns.sh
Edwin Eames 9d5c3c72f6 feat: add scraper service to all Docker environments
Add eamco_scraper container definitions for dev, local, prod, and
Unraid deployments on port 9519. Remove unused Authorize env_file
references from dev config. Include add_towns.sh helper script for
bootstrapping street reference data.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:54:29 -05:00

12 lines
365 B
Bash
Executable File

#!/bin/bash
towns=("Sutton" "Oxford" "North Oxford" "Webster" "Grafton" "Dudley" "Charlton" "Cherry Valley" "Rochdale" "Paxton" "Spencer" "Worcester")
base_url="http://localhost:9618/streets"
state="MA"
for town in "${towns[@]}"; do
encoded_town="${town// /%20}"
echo "Adding $town..."
curl -s -X POST "$base_url/$encoded_town/$state"
echo ""
done