fix: conexão mongodb #12
@ -231,8 +231,15 @@ jobs:
|
|||||||
-p 8080:8080 \
|
-p 8080:8080 \
|
||||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||||
-e ASPNETCORE_URLS=http://+:8080 \
|
-e ASPNETCORE_URLS=http://+:8080 \
|
||||||
|
-e MongoDb__ConnectionString="mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin" \
|
||||||
|
-e MongoDb__DatabaseName="BCardsDB" \
|
||||||
|
-e Logging__LogLevel__Default=Debug \
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
|
# Debug: verificar configuração aplicada
|
||||||
|
echo "🔍 Verificando configuração MongoDB no container..."
|
||||||
|
docker logs bcards-prod | head -20 || echo "Container ainda iniciando..."
|
||||||
|
|
||||||
# Recarrega NGINX
|
# Recarrega NGINX
|
||||||
sudo nginx -t && sudo systemctl reload nginx
|
sudo nginx -t && sudo systemctl reload nginx
|
||||||
|
|
||||||
@ -264,8 +271,15 @@ jobs:
|
|||||||
-p 8080:8080 \
|
-p 8080:8080 \
|
||||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||||
-e ASPNETCORE_URLS=http://+:8080 \
|
-e ASPNETCORE_URLS=http://+:8080 \
|
||||||
|
-e MongoDb__ConnectionString="mongodb://admin:c4rn31r0@129.146.116.218:27017,141.148.162.114:27017/BCardsDB?replicaSet=rs0&authSource=admin" \
|
||||||
|
-e MongoDb__DatabaseName="BCardsDB" \
|
||||||
|
-e Logging__LogLevel__Default=Debug \
|
||||||
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
|
||||||
|
# Debug: verificar configuração aplicada
|
||||||
|
echo "🔍 Verificando configuração MongoDB no container..."
|
||||||
|
docker logs bcards-prod | head -20 || echo "Container ainda iniciando..."
|
||||||
|
|
||||||
echo "✅ Servidor 2 atualizado"
|
echo "✅ Servidor 2 atualizado"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user