Skip to content

Commit bb09cd2

Browse files
committed
Start MySQL container earlier on in migration
- The idea here is this can start up and do its thing in the background whilst we're rsync'ing content and saves us waiting longer later on
1 parent 511a500 commit bb09cd2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/migrate.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,6 @@ migrate_database() {
264264
dump_size=$(human_readable "$(stat -c%s "$TEMP_SQL_FILE")")
265265
echo "✓ Database exported successfully ($dump_size)"
266266

267-
# Start MySQL container
268-
echo "Starting MySQL container..."
269-
docker compose up db -d
270-
271267
# Wait for MySQL to be ready
272268
echo -n "Waiting for MySQL container to be ready"
273269
local counter=0
@@ -542,6 +538,10 @@ main() {
542538
systemctl disable "$ghost_service_name" 2>/dev/null || true
543539
echo "✓ Ghost service stopped"
544540

541+
# Start MySQL container
542+
echo "Starting MySQL container for migration..."
543+
docker compose up db -d
544+
545545
# Migrate content
546546
echo ""
547547
migrate_content

0 commit comments

Comments
 (0)