Update script syncer nu migrations fra container til host

This commit is contained in:
Christian 2026-01-02 14:41:20 +01:00
parent ca42f0bc47
commit 35308eb172

View File

@ -62,6 +62,18 @@ echo ""
echo "🔨 Bygger nyt image med version $VERSION..." echo "🔨 Bygger nyt image med version $VERSION..."
podman-compose -f docker-compose.prod.yml up -d --build podman-compose -f docker-compose.prod.yml up -d --build
# Sync migrations from container to host
echo ""
echo "📁 Syncer migrations fra container til host..."
if podman cp bmc-hub-api-prod:/app/migrations ./migrations_temp 2>/dev/null; then
rm -rf ./migrations
mv ./migrations_temp ./migrations
chmod -R 755 ./migrations
echo "✅ Migrations synced"
else
echo "⚠️ Warning: Could not sync migrations (container might not be ready yet)"
fi
# Wait a bit for startup # Wait a bit for startup
echo "" echo ""
echo "⏳ Venter på container startup..." echo "⏳ Venter på container startup..."