Update script syncer nu migrations fra container til host
This commit is contained in:
parent
ca42f0bc47
commit
35308eb172
12
updateto.sh
12
updateto.sh
@ -62,6 +62,18 @@ echo ""
|
||||
echo "🔨 Bygger nyt image med version $VERSION..."
|
||||
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
|
||||
echo ""
|
||||
echo "⏳ Venter på container startup..."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user