Skip to content

Commit

Permalink
run migrator in the background by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Oct 11, 2024
1 parent 32ae8a7 commit 0a69926
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bin/migrate_iaids
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#!/bin/bash
set -e

# WARN: This script can run for a long time. Running this within a
# screen session or as a background process is strongly recommended

# INFO: Usage: bin/migrate_iaids path/to/audit_json
# See bin/ia_to_s3_migrator

echo 'Starting IAID migration in the background'

STAGE_ENV=production docker compose run \
--rm \
--remove-orphans \
--volume /store/tmp/fast-tmp:/store/tmp/fast-tmp \
web \
"bundle exec bin/ia_to_s3_migrator $1"
"bundle exec bin/ia_to_s3_migrator $1" &

0 comments on commit 0a69926

Please sign in to comment.