mirror of
https://github.com/d0zingcat/ghost-docker.git
synced 2026-05-13 23:16:44 +00:00
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
This commit is contained in:
@@ -264,10 +264,6 @@ migrate_database() {
|
||||
dump_size=$(human_readable "$(stat -c%s "$TEMP_SQL_FILE")")
|
||||
echo "✓ Database exported successfully ($dump_size)"
|
||||
|
||||
# Start MySQL container
|
||||
echo "Starting MySQL container..."
|
||||
docker compose up db -d
|
||||
|
||||
# Wait for MySQL to be ready
|
||||
echo -n "Waiting for MySQL container to be ready"
|
||||
local counter=0
|
||||
@@ -542,6 +538,10 @@ main() {
|
||||
systemctl disable "$ghost_service_name" 2>/dev/null || true
|
||||
echo "✓ Ghost service stopped"
|
||||
|
||||
# Start MySQL container
|
||||
echo "Starting MySQL container for migration..."
|
||||
docker compose up db -d
|
||||
|
||||
# Migrate content
|
||||
echo ""
|
||||
migrate_content
|
||||
|
||||
Reference in New Issue
Block a user