diff --git a/.github/workflows/main_viviaviajando-backend.yml b/.github/workflows/main_viviaviajando-backend.yml index 4f73550..c9eb790 100644 --- a/.github/workflows/main_viviaviajando-backend.yml +++ b/.github/workflows/main_viviaviajando-backend.yml @@ -25,7 +25,6 @@ jobs: run: | npm install npm run build --if-present - npm run test --if-present - name: Zip artifact for deployment run: zip release.zip ./* -r @@ -42,8 +41,8 @@ jobs: environment: name: 'Production' url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - permissions: - id-token: write #This is required for requesting the JWT + permissions: + id-token: write #This is required for requesting the JWT steps: - name: Download artifact from build job @@ -53,13 +52,13 @@ jobs: - name: Unzip artifact for deployment run: unzip release.zip - - - name: Login to Azure - uses: azure/login@v1 - with: - client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3DD671691C5244C8AD7D7B3A4663FB3B }} - tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E758DF6062D04E98A2D5FE733FE70F81 }} - subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C326FE2FF65043EAAE74858A2E8D013E }} + + - name: Login to Azure + uses: azure/login@v1 + with: + client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3DD671691C5244C8AD7D7B3A4663FB3B }} + tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E758DF6062D04E98A2D5FE733FE70F81 }} + subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C326FE2FF65043EAAE74858A2E8D013E }} - name: 'Deploy to Azure Web App' id: deploy-to-webapp diff --git a/config/db.js b/config/db.js index f7e8750..e90a90c 100644 --- a/config/db.js +++ b/config/db.js @@ -3,7 +3,7 @@ import mongoose from 'mongoose'; dotenv.config(); export default function connectDB() { const url = process.env.MONGODB_URI; - + console.log(url) try { mongoose.connect(url); } catch (err) {