Merge pull request 'fix: conexão mongodb' (#12) from feat/live-preview into main
All checks were successful
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 14m16s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 2m5s
BCards Deployment Pipeline / Deploy to Staging (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
All checks were successful
BCards Deployment Pipeline / Run Tests (push) Successful in 2s
BCards Deployment Pipeline / PR Validation (push) Has been skipped
BCards Deployment Pipeline / Build and Push Image (push) Successful in 14m16s
BCards Deployment Pipeline / Deploy to Production (ARM - OCI) (push) Successful in 2m5s
BCards Deployment Pipeline / Deploy to Staging (x86 - Local) (push) Has been skipped
BCards Deployment Pipeline / Cleanup Old Resources (push) Has been skipped
BCards Deployment Pipeline / Deployment Summary (push) Successful in 0s
Reviewed-on: http://git.carneiro.ddnsfree.com/ricardo/BCards/pulls/12
This commit is contained in:
commit
d74e16fbaf
@ -231,8 +231,15 @@ jobs:
|
||||
-p 8080:8080 \
|
||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||
-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
|
||||
|
||||
# Debug: verificar configuração aplicada
|
||||
echo "🔍 Verificando configuração MongoDB no container..."
|
||||
docker logs bcards-prod | head -20 || echo "Container ainda iniciando..."
|
||||
|
||||
# Recarrega NGINX
|
||||
sudo nginx -t && sudo systemctl reload nginx
|
||||
|
||||
@ -264,8 +271,15 @@ jobs:
|
||||
-p 8080:8080 \
|
||||
-e ASPNETCORE_ENVIRONMENT=Production \
|
||||
-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
|
||||
|
||||
# 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"
|
||||
EOF
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user