Node-based helpers for migrations and maintenance. For full details, open devtools/README.md.
Run image-migrator.js without Docker. Start the server, open the UI, and watch logs stream live.
npm install pg @azure/storage-blob then node devtools/server.js (defaults to port 3000)http://localhost:3000 or open devtools/app.htmlGenerate the CLI command for the image migrator without typing flags.
Open helperMoves image URLs from Postgres to Azure Blob and updates the DB with the new blob URLs.
devtools/image-migrator.jsnpm install pg @azure/storage-blobSOURCE_DB_URL, TARGET_DB_URL (optional), BACKEND_BASE, AZURE_STORAGE_CONNECTION_STRING, AZURE_CONTAINER, DRY_RUN=true (optional), TABLES_JSON (optional override)TABLES_JSON if schema differs)cd TestFront npm install pg @azure/storage-blob DRY_RUN=true SOURCE_DB_URL=<src> TARGET_DB_URL=<dst> BACKEND_BASE=<http://host:port> AZURE_STORAGE_CONNECTION_STRING=<...> node devtools/image-migrator.js